Searched defs:node (Results 1 - 18 of 18) sorted by relevance

/system/core/include/cutils/
H A Dlist.h32 #define node_to_item(node, container, member) \
33 (container *) (((char*) (node)) - offsetof(container, member))
41 #define list_for_each(node, list) \
42 for (node = (list)->next; node != (list); node = node->next)
44 #define list_for_each_reverse(node, list) \
45 for (node = (list)->prev; node !
52 list_init(struct listnode *node) argument
[all...]
/system/core/init/
H A Dsignal_handler.c51 struct listnode *node; local
121 list_for_each(node, &svc->onrestart.commands) {
122 cmd = node_to_item(node, struct command, clist);
H A Dueventd_parser.c88 struct listnode *node; local
91 list_for_each(node, &subsystem_list) {
92 s = node_to_item(node, struct ueventd_subsystem, slist);
H A Dinit_parser.c351 struct listnode *node; local
392 list_for_each(node, &import_list) {
393 struct import *import = node_to_item(node, struct import, list);
431 struct listnode *node; local
433 list_for_each(node, &service_list) {
434 svc = node_to_item(node, struct service, slist);
444 struct listnode *node; local
446 list_for_each(node, &service_list) {
447 svc = node_to_item(node, struct service, slist);
457 struct listnode *node; local
470 struct listnode *node; local
481 struct listnode *node; local
494 struct listnode *node; local
507 struct listnode *node; local
519 struct listnode *node; local
539 struct listnode *node; local
603 struct listnode *node = list_head(&action_queue); local
[all...]
H A Ddevices.c104 struct perm_node *node = calloc(1, sizeof(*node)); local
105 if (!node)
108 node->dp.name = strdup(name);
109 if (!node->dp.name)
113 node->dp.attr = strdup(attr);
114 if (!node->dp.attr)
118 node->dp.perm = perm;
119 node->dp.uid = uid;
120 node
135 struct listnode *node; local
195 struct listnode *node; local
272 struct listnode *node; local
308 struct listnode *node; local
324 struct listnode *node; local
[all...]
H A Dinit.c519 struct listnode *node; local
520 node = list_head(&act->commands);
521 if (!node || list_empty(&act->commands))
524 return node_to_item(node, struct command, clist);
529 struct listnode *node; local
530 node = cmd->clist.next;
531 if (!node)
533 if (node == &act->commands)
536 return node_to_item(node, struct command, clist);
/system/core/libcutils/
H A Dconfig_utils.c28 cnode *node; local
30 node = calloc(sizeof(cnode), 1);
31 if(node) {
32 node->name = name ? name : "";
33 node->value = value ? value : "";
36 return node;
41 cnode *node, *match = NULL; local
44 for(node = root->first_child; node; node
53 cnode *node; local
69 cnode *node; local
87 cnode *node; local
97 cnode *node; local
245 parse_block(cstate *cs, cnode *node) argument
264 cnode *node; local
[all...]
H A Ddir_hash.c150 struct list *node = malloc(sizeof(struct list)); local
152 if (name == NULL || node == NULL) {
161 free(node);
168 node->name = name;
169 node->next = list;
170 list = node;
/system/core/adb/
H A Dadb_auth_client.c34 struct listnode node; member in struct:adb_public_key
91 list_add_tail(list, &key->node);
104 free(node_to_item(item, struct adb_public_key, node));
152 key = node_to_item(item, struct adb_public_key, node);
H A Dadb_auth_host.c58 struct listnode node; member in struct:adb_private_key
275 list_add_tail(list, &key->node);
365 int adb_auth_sign(void *node, void *token, size_t token_size, void *sig) argument
368 struct adb_private_key *key = node_to_item(node, struct adb_private_key, node);
H A Dfdevent.c83 static void fdevent_plist_enqueue(fdevent *node);
84 static void fdevent_plist_remove(fdevent *node);
465 static void fdevent_plist_enqueue(fdevent *node) argument
469 node->next = list;
470 node->prev = list->prev;
471 node->prev->next = node;
472 list->prev = node;
475 static void fdevent_plist_remove(fdevent *node) argument
477 node
486 fdevent *node = list->next; local
[all...]
H A Dtransport.c404 device_tracker* node = *pnode; local
407 while (node) {
408 if (node == tracker) {
409 *pnode = node->next;
412 pnode = &node->next;
413 node = *pnode;
H A Dsysdeps_win32.c1274 static void fdevent_plist_enqueue(fdevent *node);
1275 static void fdevent_plist_remove(fdevent *node);
1374 EventHook node = *pnode; local
1376 if ( node == NULL || node->fh == fh )
1378 pnode = &node->next;
1379 node = *pnode;
1389 EventHook node; local
1397 node = *pnode;
1398 if ( node
1421 EventHook node = *pnode; local
1804 fdevent_plist_enqueue(fdevent *node) argument
1814 fdevent_plist_remove(fdevent *node) argument
1825 fdevent *node = list->next; local
[all...]
/system/core/liblog/
H A Dlog_read.c193 for (logger = node_to_item((logger_list)->node.next, struct logger, node); \
194 logger != node_to_item(&(logger_list)->node, struct logger, node); \
195 logger = node_to_item((logger)->node.next, struct logger, node))
239 struct listnode node; member in struct:logger_list
248 struct listnode node; member in struct:logger
261 list_remove(&logger->node);
477 list_init(&logger_list->node);
714 struct listnode *node = list_head(&logger_list->node); local
[all...]
H A Dlog_read_kern.c51 for (logger = node_to_item((logger_list)->node.next, struct logger, node); \
52 logger != node_to_item(&(logger_list)->node, struct logger, node); \
53 logger = node_to_item((logger)->node.next, struct logger, node))
136 struct listnode node; member in struct:logger_list
149 struct listnode node; member in struct:log_list
154 struct listnode node; member in struct:logger
172 list_head(&logger->log_list), struct log_list, node);
321 struct listnode *node; local
393 low_queue(struct listnode *node) argument
417 struct listnode *node; local
735 struct listnode *node = list_head(&logger_list->node); local
[all...]
/system/core/fastbootd/commands/
H A Dpartitions.c599 static int get_config_uint64(cnode *node, uint64_t *ptr, const char *name) argument
604 if ((tmp = config_str(node, name, NULL))) {
616 static int get_config_string(cnode *node, char *ptr, int max_len, const char *name) argument
619 const char *value = config_str(node, name, NULL);
637 static void GPT_parse_header(cnode *node, struct GPT_content *content) argument
639 get_config_uint64(node, &content->header.current_lba, "header_lba");
640 get_config_uint64(node, &content->header.backup_lba, "backup_lba");
641 get_config_uint64(node, &content->header.first_usable_lba, "first_lba");
642 get_config_uint64(node, &content->header.last_usable_lba, "last_lba");
643 get_config_uint64(node,
647 GPT_parse_partitions(cnode *node, struct GPT_content *content) argument
685 cnode_count(cnode *node) argument
[all...]
/system/core/include/system/
H A Dsound_trigger.h55 unsigned char node[6]; member in struct:sound_trigger_uuid_s
/system/core/sdcard/
H A Dsdcard.c63 * CREAT) must bump that node's refcount
130 /* Permission mode for a specific node. Controls how file permissions
133 /* Nothing special; this node should just inherit from its parent. */
135 /* This node is one level above a normal root; used for legacy layouts
138 /* This node is "/" */
140 /* This node is "/Android" */
142 /* This node is "/Android/data" */
144 /* This node is "/Android/obb" */
146 /* This node is "/Android/media" */
148 /* This node i
167 struct node { struct
278 acquire_node_locked(struct node* node) argument
286 release_node_locked(struct node* node) argument
307 add_node_to_parent_locked(struct node *node, struct node *parent) argument
314 remove_node_from_parent_locked(struct node* node) argument
337 get_node_path_locked(struct node* node, char* buf, size_t bufsize) argument
412 attr_from_stat(struct fuse_attr *attr, const struct stat *s, const struct node* node) argument
450 derive_permissions_locked(struct fuse* fuse, struct node *parent, struct node *node) argument
591 check_caller_access_to_node(struct fuse* fuse, const struct fuse_in_header *hdr, const struct node* node, int mode, bool has_rw) argument
599 struct node *node; local
639 rename_node_locked(struct node *node, const char *name, const char* actual_name) argument
692 struct node* node = lookup_node_by_id_locked(fuse, nid); local
699 lookup_child_by_name_locked(struct node *node, const char *name) argument
813 struct node* node; local
838 fuse_reply_attr(struct fuse* fuse, __u64 unique, const struct node* node, const char* path) argument
883 struct node* node; local
902 struct node* node; local
925 struct node* node; local
1220 struct node* node; local
1385 struct node* node; local
[all...]

Completed in 263 milliseconds