Searched defs:root (Results 1 - 7 of 7) sorted by relevance

/system/bt/osi/src/
H A Dbuffer.c29 buffer_t *root; member in struct:buffer_t
44 buffer->root = buffer;
67 ret->root = buf->root;
71 ++buf->root->refcount;
80 if (buffer->root != buffer) {
81 // We're a leaf node. Delete the root node if we're the last referent.
82 if (--buffer->root->refcount == 0)
83 osi_free(buffer->root);
86 // We're a root nod
[all...]
/system/core/libcutils/
H A Dconfig_utils.c39 cnode* config_find(cnode *root, const char *name) argument
44 for(node = root->first_child; node; node = node->next)
51 static cnode* _config_create(cnode *root, const char *name) argument
57 if(root->last_child)
58 root->last_child->next = node;
60 root->first_child = node;
62 root->last_child = node;
67 int config_bool(cnode *root, const char *name, int _default) argument
71 node = config_find(root, name);
85 const char* config_str(cnode *root, cons argument
95 config_set(cnode *root, const char *name, const char *value) argument
262 parse_expr(cstate *cs, cnode *root) argument
292 config_load(cnode *root, char *data) argument
312 config_load_file(cnode *root, const char *fn) argument
319 config_free(cnode *root) argument
[all...]
/system/core/libdiskconfig/
H A Ddiskconfig.c94 load_partitions(cnode *root, struct disk_info *dinfo) argument
99 for (partnode = root->first_child; partnode; partnode = partnode->next) {
146 cnode *root = config_node("", ""); local
162 config_load_file(root, fn);
163 if (root->first_child == NULL) {
168 if (!(devroot = config_find(root, "device"))) {
/system/core/libprocessgroup/
H A Dprocessgroup.cpp191 DIR *root = opendir(PROCESSGROUP_CGROUP_PATH); local
192 if (root == NULL) {
197 while ((readdir_r(root, &cur, &dir) == 0) && dir) {
212 closedir(root);
/system/core/adb/tests/
H A Dtest_adb.py188 def root(self): member in class:AdbWrapper
189 return call_checked(self.adb_cmd + "root")
246 adb.root()
248 self.assertEqual("root", adb.shell("id -un").strip())
257 """Make sure that adb root and adb unroot work, using id(1)."""
261 if original_user == "root":
268 if original_user == "root":
269 adb.root()
/system/core/init/
H A Ddevices.cpp436 /* skip root hub name and device. use device interface */
804 char *root, *loading, *data; local
812 l = asprintf(&root, SYSFS_PREFIX"%s/", uevent->path);
816 l = asprintf(&loading, "%sloading", root);
820 l = asprintf(&data, "%sdata", root);
842 INFO("firmware: copy success { '%s', '%s' }\n", root, uevent->firmware);
844 INFO("firmware: copy failure { '%s', '%s' }\n", root, uevent->firmware);
872 free(root);
/system/core/sdcard/
H A Dsdcard.c58 * It must be run as root, but will drop to requested UID/GID as soon as it
117 /* This node is one level above a normal root; used for legacy layouts
200 struct node root; member in struct:fuse_global
516 /* Always block security-sensitive files at root */
629 return &fuse->global->root;
1273 res = get_node_path_locked(&fuse->global->root, path, sizeof(path));
1278 if (statfs(fuse->global->root.name, &stat) < 0) {
1798 memset(&global.root, 0, sizeof(global.root));
1799 global.root
[all...]

Completed in 591 milliseconds