Searched refs:openflags (Results 1 – 8 of 8) sorted by relevance
/Linux-v4.19/arch/um/include/shared/ |
D | os.h | 58 struct openflags { struct 69 #define OPENFLAGS() ((struct openflags) { .r = 0, .w = 0, .s = 0, .c = 0, \ argument 72 static inline struct openflags of_read(struct openflags flags) in of_read() 78 static inline struct openflags of_write(struct openflags flags) in of_write() 84 static inline struct openflags of_rdwr(struct openflags flags) in of_rdwr() 89 static inline struct openflags of_set_rw(struct openflags flags, int r, int w) in of_set_rw() 96 static inline struct openflags of_sync(struct openflags flags) in of_sync() 102 static inline struct openflags of_create(struct openflags flags) in of_create() 108 static inline struct openflags of_trunc(struct openflags flags) in of_trunc() 114 static inline struct openflags of_append(struct openflags flags) in of_append() [all …]
|
/Linux-v4.19/fs/nfs/ |
D | nfs4file.c | 32 unsigned openflags = filp->f_flags; in nfs4_file_open() local 47 err = nfs_check_flags(openflags); in nfs4_file_open() 51 if ((openflags & O_ACCMODE) == 3) in nfs4_file_open() 52 openflags--; in nfs4_file_open() 55 openflags &= ~(O_CREAT|O_EXCL); 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()
|
D | dir.c | 2480 static int nfs_open_permission_mask(int openflags) in nfs_open_permission_mask() argument 2484 if (openflags & __FMODE_EXEC) { in nfs_open_permission_mask() 2488 if ((openflags & O_ACCMODE) != O_WRONLY) in nfs_open_permission_mask() 2490 if ((openflags & O_ACCMODE) != O_RDONLY) in nfs_open_permission_mask() 2497 int nfs_may_open(struct inode *inode, struct rpc_cred *cred, int openflags) in nfs_may_open() argument 2499 return nfs_do_access(inode, cred, nfs_open_permission_mask(openflags)); in nfs_may_open()
|
D | nfs4proc.c | 1153 fmode_t fmode, int openflags) in nfs4_map_atomic_open_share() argument 1170 if (openflags & O_DIRECT) in nfs4_map_atomic_open_share() 2463 int openflags) in nfs4_opendata_access() argument 2478 if (openflags & __FMODE_EXEC) { in nfs4_opendata_access()
|
/Linux-v4.19/arch/um/drivers/ |
D | ubd_kern.c | 123 #define OPEN_FLAGS ((struct openflags) { .r = 1, .w = 1, .s = 1, .c = 0, \ 126 #define OPEN_FLAGS ((struct openflags) { .r = 1, .w = 1, .s = 0, .c = 0, \ 129 static struct openflags global_openflags = OPEN_FLAGS; 152 struct openflags boot_openflags; 153 struct openflags openflags; member 180 .openflags = OPEN_FLAGS, \ 267 struct openflags flags = global_openflags; in ubd_setup_common() 673 static int open_ubd_file(char *file, struct openflags *openflags, int shared, in open_ubd_file() argument 684 fd = os_open_file(file, *openflags, mode); in open_ubd_file() 688 if (!openflags->w || in open_ubd_file() [all …]
|
/Linux-v4.19/init/ |
D | initramfs.c | 330 int openflags = O_WRONLY|O_CREAT; in do_name() local 332 openflags |= O_TRUNC; in do_name() 333 wfd = ksys_open(collected, openflags, mode); in do_name()
|
/Linux-v4.19/arch/um/os-Linux/ |
D | file.c | 153 int os_file_mode(const char *file, struct openflags *mode_out) in os_file_mode() 174 int os_open_file(const char *file, struct openflags flags, int mode) in os_open_file()
|
/Linux-v4.19/include/linux/ |
D | nfs_fs.h | 491 extern int nfs_may_open(struct inode *inode, struct rpc_cred *cred, int openflags);
|