Home
last modified time | relevance | path

Searched refs:openflags (Results 1 – 8 of 8) sorted by relevance

/openbmc/linux/arch/um/include/shared/
H A Dos.h65 struct openflags { struct
79 static inline struct openflags of_read(struct openflags flags) in of_read()
85 static inline struct openflags of_write(struct openflags flags) in of_write()
91 static inline struct openflags of_rdwr(struct openflags flags) in of_rdwr()
96 static inline struct openflags of_set_rw(struct openflags flags, int r, int w) in of_set_rw()
103 static inline struct openflags of_sync(struct openflags flags) in of_sync()
109 static inline struct openflags of_create(struct openflags flags) in of_create()
115 static inline struct openflags of_trunc(struct openflags flags) in of_trunc()
121 static inline struct openflags of_append(struct openflags flags) in of_append()
127 static inline struct openflags of_excl(struct openflags flags) in of_excl()
[all …]
/openbmc/linux/arch/um/drivers/
H A Dubd_kern.c161 struct openflags boot_openflags;
162 struct openflags openflags; member
188 .openflags = OPEN_FLAGS, \
240 struct openflags flags = global_openflags; in ubd_setup_common()
624 static int open_ubd_file(char *file, struct openflags *openflags, int shared, in open_ubd_file() argument
639 if (!openflags->w || in open_ubd_file()
642 openflags->w = 0; in open_ubd_file()
651 err = os_lock_file(fd, openflags->w); in open_ubd_file()
704 struct openflags flags, in create_cow_file()
742 struct openflags flags; in ubd_open_dev()
[all …]
/openbmc/linux/fs/nfs/
H A Dnfs4file.c34 unsigned openflags = filp->f_flags; in nfs4_file_open() local
49 err = nfs_check_flags(openflags); in nfs4_file_open()
54 openflags &= ~(O_CREAT|O_EXCL); in nfs4_file_open()
60 flags_to_mode(openflags), filp); in nfs4_file_open()
66 if (openflags & O_TRUNC) { in nfs4_file_open()
72 inode = NFS_PROTO(dir)->open_context(dir, ctx, openflags, &attr, NULL); in nfs4_file_open()
H A Ddir.c3247 static int nfs_open_permission_mask(int openflags) in nfs_open_permission_mask() argument
3251 if (openflags & __FMODE_EXEC) { in nfs_open_permission_mask()
3255 if ((openflags & O_ACCMODE) != O_WRONLY) in nfs_open_permission_mask()
3257 if ((openflags & O_ACCMODE) != O_RDONLY) in nfs_open_permission_mask()
3264 int nfs_may_open(struct inode *inode, const struct cred *cred, int openflags) in nfs_may_open() argument
3266 return nfs_do_access(inode, cred, nfs_open_permission_mask(openflags)); in nfs_may_open()
H A Dnfs4proc.c1299 fmode_t fmode, int openflags) in nfs4_map_atomic_open_share() argument
1316 if (openflags & O_DIRECT) in nfs4_map_atomic_open_share()
2140 int openflags = opendata->o_arg.open_flags; in nfs4_open_recover_helper() local
2147 nfs4_map_atomic_open_share(server, fmode, openflags); in nfs4_open_recover_helper()
/openbmc/linux/init/
H A Dinitramfs.c369 int openflags = O_WRONLY|O_CREAT; in do_name() local
371 openflags |= O_TRUNC; in do_name()
372 wfile = filp_open(collected, openflags, mode); in do_name()
/openbmc/linux/arch/um/os-Linux/
H A Dfile.c158 int os_file_mode(const char *file, struct openflags *mode_out) in os_file_mode()
179 int os_open_file(const char *file, struct openflags flags, int mode) in os_open_file()
/openbmc/linux/include/linux/
H A Dnfs_fs.h560 extern int nfs_may_open(struct inode *inode, const struct cred *cred, int openflags);