Lines Matching refs:root
30 static errval_t write_directory(struct dirent *root, const char *path);
31 static errval_t write_file(struct dirent *root, const char *path, uint8_t *data,
38 struct dirent *root = arg;
42 err = write_file(root, h->name, (void *)h->data, h->datasize);
44 err = write_directory(root, h->name);
56 static errval_t unpack_cpio(struct dirent *root, void *data, size_t len)
63 cpio_visit(data, len, cpio_entry_handler, &h, root);
67 static errval_t unpack_cpiogz(struct dirent *root, void *data, size_t len)
114 err = unpack_cpio(root, outbuf, outbufpos);
121 static errval_t write_directory(struct dirent *root, const char *path)
126 assert(root != NULL);
129 struct dirent *d = root;
184 static errval_t write_file(struct dirent *root, const char *path, uint8_t *data,
190 assert(root != NULL);
193 struct dirent *d = root;
335 static void populate_multiboot(struct dirent *root, struct bootinfo *bi)
341 assert(root != NULL);
345 err = ramfs_create(root, BOOTSCRIPT_FILE_NAME, &bootscript_f);
368 err = unpack_cpiogz(root, (void *)data, len);
381 err = unpack_cpio(root, (void *)data, len);
395 err = write_file(root, name, (void *)data, len);
479 struct dirent *root = ramfs_init();
482 populate_multiboot(root, bi);
485 err = start_service(root);