Lines Matching defs:resources
38 uint32 resources;
71 static uint32 sLowResources = 0; // resources that are not B_NO_LOW_RESOURCE
100 low_resource_state_no_update(uint32 resources)
104 if ((resources & B_KERNEL_RESOURCE_PAGES) != 0)
106 if ((resources & B_KERNEL_RESOURCE_MEMORY) != 0)
108 if ((resources & B_KERNEL_RESOURCE_SEMAPHORES) != 0)
110 if ((resources & B_KERNEL_RESOURCE_ADDRESS_SPACE) != 0)
117 /*! Calls low resource handlers for the given resources.
137 int32 resources = handler->resources & lowResources;
138 if (resources != 0) {
140 handler->function(handler->data, resources,
141 low_resource_state_no_update(resources));
298 kprintf("function data resources prio function-name\n");
307 char resources[16];
308 snprintf(resources, sizeof(resources), "%c %c %c %c",
309 handler->resources & B_KERNEL_RESOURCE_PAGES ? 'p' : ' ',
310 handler->resources & B_KERNEL_RESOURCE_MEMORY ? 'm' : ' ',
311 handler->resources & B_KERNEL_RESOURCE_SEMAPHORES ? 's' : ' ',
312 handler->resources & B_KERNEL_RESOURCE_ADDRESS_SPACE ? 'a' : ' ');
315 handler->data, resources, handler->priority, symbol);
381 low_resource_state(uint32 resources)
388 int32 state = low_resource_state_no_update(resources);
466 uint32 resources, int32 priority)
477 newHandler->resources = resources;