/system/core/libcutils/ |
H A D | list.c | 19 void list_init(struct listnode *node) argument 21 node->next = node; 22 node->prev = node;
|
H A D | config_utils.c | 28 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 D | dir_hash.c | 150 struct list *node = malloc(sizeof(struct list)); local 152 if (name == NULL || node == NULL) { 161 free(node); 167 node->name = name; 168 node->next = list; 169 list = node;
|
/system/core/init/ |
H A D | signal_handler.c | 51 struct listnode *node; local 113 list_for_each(node, &svc->onrestart.commands) { 114 cmd = node_to_item(node, struct command, clist);
|
H A D | devices.c | 98 struct perm_node *node = calloc(1, sizeof(*node)); local 99 if (!node) 102 node->dp.name = strdup(name); 103 if (!node->dp.name) 107 node->dp.attr = strdup(attr); 108 if (!node->dp.attr) 112 node->dp.perm = perm; 113 node->dp.uid = uid; 114 node 128 struct listnode *node; local 166 struct listnode *node; local 231 struct listnode *node; local 267 struct listnode *node; local 283 struct listnode *node; local [all...] |
H A D | init_parser.c | 351 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 600 struct listnode *node = list_head(&action_queue); local [all...] |
H A D | init.c | 506 struct listnode *node; local 507 node = list_head(&act->commands); 508 if (!node || list_empty(&act->commands)) 511 return node_to_item(node, struct command, clist); 516 struct listnode *node; local 517 node = cmd->clist.next; 518 if (!node) 520 if (node == &act->commands) 523 return node_to_item(node, struct command, clist);
|
/system/extras/fatblock/ |
H A D | fdpool.c | 35 static void fdpool_insert_head(struct pooled_fd *node) argument 40 assert(node); 42 prev->next = node; 43 node->prev = prev; 44 node->next = next; 45 next->prev = node; 50 static void fdpool_remove(struct pooled_fd *node) argument 52 struct pooled_fd *prev = node->prev; 53 struct pooled_fd *next = node->next;
|
/system/core/adb/ |
H A D | adb_auth_client.c | 34 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 D | adb_auth_host.c | 55 struct listnode node; member in struct:adb_private_key 256 list_add_tail(list, &key->node); 346 int adb_auth_sign(void *node, void *token, size_t token_size, void *sig) argument 349 struct adb_private_key *key = node_to_item(node, struct adb_private_key, node);
|
H A D | fdevent.c | 92 static void fdevent_plist_enqueue(fdevent *node); 93 static void fdevent_plist_remove(fdevent *node); 474 static void fdevent_plist_enqueue(fdevent *node) argument 478 node->next = list; 479 node->prev = list->prev; 480 node->prev->next = node; 481 list->prev = node; 484 static void fdevent_plist_remove(fdevent *node) argument 486 node 495 fdevent *node = list->next; local [all...] |
H A D | transport.c | 404 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 D | sysdeps_win32.c | 1266 static void fdevent_plist_enqueue(fdevent *node); 1267 static void fdevent_plist_remove(fdevent *node); 1366 EventHook node = *pnode; local 1368 if ( node == NULL || node->fh == fh ) 1370 pnode = &node->next; 1371 node = *pnode; 1381 EventHook node; local 1389 node = *pnode; 1390 if ( node 1413 EventHook node = *pnode; local 1796 fdevent_plist_enqueue(fdevent *node) argument 1806 fdevent_plist_remove(fdevent *node) argument 1817 fdevent *node = list->next; local [all...] |
/system/core/sh/ |
H A D | nodes.h | 36 union node *ch1; 37 union node *ch2; 44 union node *args; 45 union node *redirect; 58 union node *n; 59 union node *redirect; 65 union node *test; 66 union node *ifpart; 67 union node *elsepart; 73 union node *arg 134 union node { union [all...] |
H A D | jobs.c | 105 STATIC void cmdtxt(union node *); 106 STATIC void cmdlist(union node *, int); 774 makejob(union node *node, int nprocs) argument 825 TRACE(("makejob(0x%lx, %d) returns %%%d\n", (long)node, nprocs, 847 forkshell(struct job *jp, union node *n, int mode) 867 forkparent(struct job *jp, union node *n, int mode, pid_t pid) 896 forkchild(struct job *jp, union node *n, int mode, int vforked) 1219 commandtext(struct procstat *ps, union node *n) 1244 cmdtxt(union node * [all...] |
/system/core/charger/ |
H A D | charger.c | 318 struct listnode *node; local 321 list_for_each(node, &charger->supplies) { 322 supply = node_to_item(node, struct power_supply, list);
|
/system/core/sdcard/ |
H A D | sdcard.c | 60 * CREAT) must bump that node's refcount 127 /* Permission mode for a specific node. Controls how file permissions 130 /* Nothing special; this node should just inherit from its parent. */ 132 /* This node is one level above a normal root; used for legacy layouts 135 /* This node is "/" */ 137 /* This node is "/Android" */ 139 /* This node is "/Android/data" */ 141 /* This node is "/Android/obb" */ 143 /* This node is "/Android/user" */ 162 struct node { struct 249 acquire_node_locked(struct node* node) argument 257 release_node_locked(struct node* node) argument 278 add_node_to_parent_locked(struct node *node, struct node *parent) argument 285 remove_node_from_parent_locked(struct node* node) argument 308 get_node_path_locked(struct node* node, char* buf, size_t bufsize) argument 383 attr_from_stat(struct fuse_attr *attr, const struct stat *s, const struct node* node) argument 421 derive_permissions_locked(struct fuse* fuse, struct node *parent, struct node *node) argument 557 check_caller_access_to_node(struct fuse* fuse, const struct fuse_in_header *hdr, const struct node* node, int mode, bool has_rw) argument 565 struct node *node; local 597 rename_node_locked(struct node *node, const char *name, const char* actual_name) argument 650 struct node* node = lookup_node_by_id_locked(fuse, nid); local 657 lookup_child_by_name_locked(struct node *node, const char *name) argument 770 struct node* node; local 795 fuse_reply_attr(struct fuse* fuse, __u64 unique, const struct node* node, const char* path) argument 840 struct node* node; local 859 struct node* node; local 882 struct node* node; local 1177 struct node* node; local 1326 struct node* node; local [all...] |