Lines Matching defs:stack
150 status_t _AddPath(Stack<KPath*>& stack, const char* path,
385 // The following is done to reduce the stack usage of deeply nested
1235 device_node::_AddPath(Stack<KPath*>& stack, const char* basePath,
1246 status = stack.Push(path);
1258 Stack<KPath*>* stack = NULL;
1262 stack = new(std::nothrow) Stack<KPath*>();
1263 if (stack == NULL)
1266 StackDeleter<KPath*> stackDeleter(stack);
1279 _AddPath(*stack, "busses", "scsi");
1282 _AddPath(*stack, "busses", "ide");
1285 _AddPath(*stack, "busses", "sata");
1288 _AddPath(*stack, "busses", "disk");
1295 _AddPath(*stack, "busses", "firewire");
1298 _AddPath(*stack, "busses", "usb");
1301 _AddPath(*stack, "busses");
1306 _AddPath(*stack, "drivers", "net");
1309 _AddPath(*stack, "drivers", "graphics");
1315 _AddPath(*stack, "drivers", "audio");
1318 _AddPath(*stack, "drivers", "video");
1321 _AddPath(*stack, "drivers");
1327 _AddPath(*stack, "busses/pci");
1328 _AddPath(*stack, "bus_managers");
1330 _AddPath(*stack, "drivers");
1336 cookie = (void*)stack;
1338 stack = static_cast<Stack<KPath*>*>(cookie);
1341 if (stack->Pop(&path)) {
1347 delete stack;