Lines Matching defs:log
16 void bootfs_mount(zx_handle_t vmar, zx_handle_t log, zx_handle_t vmo, struct bootfs *fs) {
19 check(log, status, "zx_vmo_get_size failed on bootfs vmo\n");
22 check(log, status, "zx_vmar_map failed on bootfs vmo\n");
30 check(log, status, "zx_handle_duplicate failed on bootfs VMO handle\n");
33 void bootfs_unmount(zx_handle_t vmar, zx_handle_t log, struct bootfs *fs) {
35 check(log, status, "zx_vmar_unmap failed\n");
37 check(log, status, "zx_handle_close failed\n");
40 static const bootfs_entry_t* bootfs_search(zx_handle_t log,
46 fail(log, "bootfs is too small");
50 fail(log, "bootfs bad magic or size");
62 fail(log, "bootfs has bogus namelen in header");
76 zx_handle_t bootfs_open(zx_handle_t log, const char* purpose,
78 printl(log, "searching bootfs for '%s'", filename);
80 const bootfs_entry_t* e = bootfs_search(log, fs, filename);
82 printl(log, "file not found");
86 fail(log, "bogus offset in bootfs header!");
88 fail(log, "bogus size in bootfs header!");
97 fail(log, "zx_vmo_clone failed: %d", status);
109 fail(log, "zx_handle_replace failed: %d", status);
114 fail(log, "zx_vmo_replace_as_executable failed: %d", status);