Home
last modified time | relevance | path

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

/OK3568_Linux_fs/kernel/arch/um/include/shared/
H A Dos.h60 struct openflags { struct
71 #define OPENFLAGS() ((struct openflags) { .r = 0, .w = 0, .s = 0, .c = 0, \ argument
74 static inline struct openflags of_read(struct openflags flags) in of_read()
80 static inline struct openflags of_write(struct openflags flags) in of_write()
86 static inline struct openflags of_rdwr(struct openflags flags) in of_rdwr()
91 static inline struct openflags of_set_rw(struct openflags flags, int r, int w) in of_set_rw()
98 static inline struct openflags of_sync(struct openflags flags) in of_sync()
104 static inline struct openflags of_create(struct openflags flags) in of_create()
110 static inline struct openflags of_trunc(struct openflags flags) in of_trunc()
116 static inline struct openflags of_append(struct openflags flags) in of_append()
[all …]
/OK3568_Linux_fs/kernel/arch/um/drivers/
H A Dubd_kern.c133 #define OPEN_FLAGS ((struct openflags) { .r = 1, .w = 1, .s = 1, .c = 0, \
136 #define OPEN_FLAGS ((struct openflags) { .r = 1, .w = 1, .s = 0, .c = 0, \
139 static struct openflags global_openflags = OPEN_FLAGS;
161 struct openflags boot_openflags;
162 struct openflags openflags; member
187 .openflags = OPEN_FLAGS, \
274 struct openflags flags = global_openflags; in ubd_setup_common()
672 static int open_ubd_file(char *file, struct openflags *openflags, int shared, in open_ubd_file() argument
683 fd = os_open_file(file, *openflags, mode); in open_ubd_file()
687 if (!openflags->w || in open_ubd_file()
[all …]
/OK3568_Linux_fs/kernel/fs/nfs/
H A Dnfs4file.c34 unsigned openflags = filp->f_flags; in nfs4_file_open() local
50 err = nfs_check_flags(openflags); in nfs4_file_open()
55 if ((openflags & O_ACCMODE) == 3) in nfs4_file_open()
56 f_mode |= flags_to_mode(openflags); in nfs4_file_open()
59 openflags &= ~(O_CREAT|O_EXCL); in nfs4_file_open()
70 if (openflags & O_TRUNC) { in nfs4_file_open()
76 inode = NFS_PROTO(dir)->open_context(dir, ctx, openflags, &attr, NULL); in nfs4_file_open()
H A Ddir.c2722 static int nfs_open_permission_mask(int openflags) in nfs_open_permission_mask() argument
2726 if (openflags & __FMODE_EXEC) { in nfs_open_permission_mask()
2730 if ((openflags & O_ACCMODE) != O_WRONLY) in nfs_open_permission_mask()
2732 if ((openflags & O_ACCMODE) != O_RDONLY) in nfs_open_permission_mask()
2739 int nfs_may_open(struct inode *inode, const struct cred *cred, int openflags) in nfs_may_open() argument
2741 return nfs_do_access(inode, cred, nfs_open_permission_mask(openflags)); in nfs_may_open()
H A Dnfs4proc.c1275 fmode_t fmode, int openflags) in nfs4_map_atomic_open_share() argument
1292 if (openflags & O_DIRECT) in nfs4_map_atomic_open_share()
2616 int openflags) in nfs4_opendata_access() argument
2631 if (openflags & __FMODE_EXEC) { in nfs4_opendata_access()
/OK3568_Linux_fs/kernel/init/
H A Dinitramfs.c337 int openflags = O_WRONLY|O_CREAT; in do_name() local
339 openflags |= O_TRUNC; in do_name()
340 wfile = filp_open(collected, openflags, mode); in do_name()
/OK3568_Linux_fs/kernel/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()
/OK3568_Linux_fs/kernel/include/linux/
H A Dnfs_fs.h502 extern int nfs_may_open(struct inode *inode, const struct cred *cred, int openflags);