Lines Matching refs:openflags
111 #define OPEN_FLAGS ((struct openflags) { .r = 1, .w = 1, .s = 1, .c = 0, \
114 #define OPEN_FLAGS ((struct openflags) { .r = 1, .w = 1, .s = 0, .c = 0, \
117 static struct openflags global_openflags = OPEN_FLAGS;
140 struct openflags boot_openflags;
141 struct openflags openflags; member
168 .openflags = OPEN_FLAGS, \
267 struct openflags flags = global_openflags; in ubd_setup_common()
615 static int open_ubd_file(char *file, struct openflags *openflags, int shared, in open_ubd_file() argument
626 fd = os_open_file(file, *openflags, mode); in open_ubd_file()
630 if (!openflags->w || in open_ubd_file()
633 openflags->w = 0; in open_ubd_file()
634 fd = os_open_file(file, *openflags, mode); in open_ubd_file()
642 err = os_lock_file(fd, openflags->w); in open_ubd_file()
695 struct openflags flags, in create_cow_file()
733 struct openflags flags; in ubd_open_dev()
738 ubd_dev->openflags = ubd_dev->boot_openflags; in ubd_open_dev()
743 fd = open_ubd_file(ubd_dev->file, &ubd_dev->openflags, ubd_dev->shared, in ubd_open_dev()
750 ubd_dev->openflags, 1 << 9, PAGE_SIZE, in ubd_open_dev()
784 flags = ubd_dev->openflags; in ubd_open_dev()
1129 set_disk_ro(disk, !ubd_dev->openflags.w); in ubd_open()