f_mode 122 arch/s390/hypfs/inode.c if (filp->f_mode & FMODE_WRITE) { f_mode 126 arch/s390/hypfs/inode.c if (filp->f_mode & FMODE_READ) { f_mode 193 arch/um/drivers/hostaudio_kern.c if (file->f_mode & FMODE_READ) f_mode 195 arch/um/drivers/hostaudio_kern.c if (file->f_mode & FMODE_WRITE) f_mode 254 arch/um/drivers/hostaudio_kern.c if (file->f_mode & FMODE_READ) f_mode 256 arch/um/drivers/hostaudio_kern.c if (file->f_mode & FMODE_WRITE) f_mode 38 arch/um/drivers/random.c if ((filp->f_mode & FMODE_READ) == 0) f_mode 40 arch/um/drivers/random.c if ((filp->f_mode & FMODE_WRITE) != 0) f_mode 1624 arch/x86/kernel/apm_32.c as->writer = (filp->f_mode & FMODE_WRITE) == FMODE_WRITE; f_mode 1625 arch/x86/kernel/apm_32.c as->reader = (filp->f_mode & FMODE_READ) == FMODE_READ; f_mode 1437 arch/x86/kernel/cpu/resctrl/pseudo_lock.c filp->f_mode &= ~(FMODE_LSEEK | FMODE_PREAD | FMODE_PWRITE); f_mode 114 arch/x86/kernel/msr.c if (!(file->f_mode & FMODE_READ)) { f_mode 130 arch/x86/kernel/msr.c if (!(file->f_mode & FMODE_WRITE)) { f_mode 373 block/bsg.c return scsi_cmd_ioctl(bd->queue, NULL, file->f_mode, cmd, uarg); f_mode 375 block/bsg.c return bsg_sg_io(bd->queue, file->f_mode, uarg); f_mode 322 block/compat_ioctl.c fmode_t mode = file->f_mode; f_mode 716 drivers/auxdisplay/charlcd.c if (file->f_mode & FMODE_READ) /* device is write-only */ f_mode 1110 drivers/auxdisplay/panel.c if (file->f_mode & FMODE_WRITE) /* device is read-only */ f_mode 998 drivers/block/loop.c if (!(file->f_mode & FMODE_WRITE) || !(mode & FMODE_WRITE) || f_mode 682 drivers/block/paride/pt.c if ((!(tape->flags & PT_WRITE_OK)) && (file->f_mode & FMODE_WRITE)) f_mode 19 drivers/char/adi.c file->f_mode |= FMODE_UNSIGNED_OFFSET; f_mode 367 drivers/char/apm-emulation.c as->writer = (filp->f_mode & FMODE_WRITE) == FMODE_WRITE; f_mode 368 drivers/char/apm-emulation.c as->reader = (filp->f_mode & FMODE_READ) == FMODE_READ; f_mode 263 drivers/char/hpet.c if (file->f_mode & FMODE_WRITE) f_mode 175 drivers/char/hw_random/core.c if ((filp->f_mode & FMODE_READ) == 0) f_mode 177 drivers/char/hw_random/core.c if (filp->f_mode & FMODE_WRITE) f_mode 920 drivers/char/mem.c filp->f_mode |= dev->fmode; f_mode 368 drivers/char/nvram.c (file->f_mode & FMODE_WRITE) && (nvram_open_mode & NVRAM_WRITE)) { f_mode 376 drivers/char/nvram.c if (file->f_mode & FMODE_WRITE) f_mode 394 drivers/char/nvram.c if (file->f_mode & FMODE_WRITE) f_mode 76 drivers/char/raw.c err = blkdev_get(bdev, filp->f_mode | FMODE_EXCL, raw_open); f_mode 92 drivers/char/raw.c blkdev_put(bdev, filp->f_mode | FMODE_EXCL); f_mode 114 drivers/char/raw.c blkdev_put(bdev, filp->f_mode | FMODE_EXCL); f_mode 1158 drivers/char/xillybus/xillybus_core.c if (!(filp->f_mode & FMODE_WRITE)) f_mode 1448 drivers/char/xillybus/xillybus_core.c if ((filp->f_mode & FMODE_READ) && (!channel->num_wr_buffers)) f_mode 1451 drivers/char/xillybus/xillybus_core.c if ((filp->f_mode & FMODE_WRITE) && (!channel->num_rd_buffers)) f_mode 1454 drivers/char/xillybus/xillybus_core.c if ((filp->f_mode & FMODE_READ) && (filp->f_flags & O_NONBLOCK) && f_mode 1462 drivers/char/xillybus/xillybus_core.c if ((filp->f_mode & FMODE_WRITE) && (filp->f_flags & O_NONBLOCK) && f_mode 1476 drivers/char/xillybus/xillybus_core.c if (filp->f_mode & FMODE_READ) { f_mode 1482 drivers/char/xillybus/xillybus_core.c if (filp->f_mode & FMODE_WRITE) { f_mode 1488 drivers/char/xillybus/xillybus_core.c if ((filp->f_mode & FMODE_READ) && f_mode 1495 drivers/char/xillybus/xillybus_core.c if ((filp->f_mode & FMODE_WRITE) && f_mode 1502 drivers/char/xillybus/xillybus_core.c if (filp->f_mode & FMODE_READ) { f_mode 1527 drivers/char/xillybus/xillybus_core.c if (filp->f_mode & FMODE_WRITE) { f_mode 1549 drivers/char/xillybus/xillybus_core.c if (filp->f_mode & FMODE_WRITE) f_mode 1552 drivers/char/xillybus/xillybus_core.c if (filp->f_mode & FMODE_READ) f_mode 1572 drivers/char/xillybus/xillybus_core.c if (filp->f_mode & FMODE_WRITE) { f_mode 1591 drivers/char/xillybus/xillybus_core.c if (filp->f_mode & FMODE_READ) { f_mode 560 drivers/dma-buf/dma-buf.c file->f_mode |= FMODE_LSEEK; f_mode 1186 drivers/dma-buf/dma-buf.c buf_obj->file->f_flags, buf_obj->file->f_mode, f_mode 325 drivers/gpu/drm/drm_file.c filp->f_mode |= FMODE_UNSIGNED_OFFSET; f_mode 1492 drivers/ide/ide-tape.c filp->f_mode &= ~(FMODE_PREAD | FMODE_PWRITE); f_mode 6844 drivers/md/md.c } else if (!(f->f_mode & FMODE_WRITE)) { f_mode 58 drivers/mtd/mtdchar.c if ((file->f_mode & FMODE_WRITE) && (minor & 1)) f_mode 75 drivers/mtd/mtdchar.c if ((file->f_mode & FMODE_WRITE) && !(mtd->flags & MTD_WRITEABLE)) { f_mode 107 drivers/mtd/mtdchar.c if ((file->f_mode & FMODE_WRITE)) f_mode 357 drivers/mtd/mtdchar.c if (!(file->f_mode & FMODE_WRITE)) f_mode 691 drivers/mtd/mtdchar.c if(!(file->f_mode & FMODE_WRITE)) f_mode 536 drivers/mtd/nand/raw/nandsim.c if (!(cfile->f_mode & FMODE_CAN_READ)) { f_mode 541 drivers/mtd/nand/raw/nandsim.c if (!(cfile->f_mode & FMODE_CAN_WRITE)) { f_mode 101 drivers/mtd/ubi/cdev.c if (file->f_mode & FMODE_WRITE) f_mode 4716 drivers/net/wireless/cisco/airo.c if (file->f_mode&FMODE_WRITE) { f_mode 5451 drivers/net/wireless/cisco/airo.c if (file->f_mode & FMODE_WRITE) { f_mode 5452 drivers/net/wireless/cisco/airo.c if (!(file->f_mode & FMODE_READ)) { f_mode 148 drivers/net/xen-netback/xenbus.c filp->f_mode |= FMODE_PWRITE; f_mode 54 drivers/parisc/eisa_eeprom.c if (file->f_mode & FMODE_WRITE) f_mode 582 drivers/sbus/char/openprom.c if ((file->f_mode & FMODE_READ) == 0) f_mode 589 drivers/sbus/char/openprom.c if ((file->f_mode & FMODE_WRITE) == 0) f_mode 598 drivers/sbus/char/openprom.c if ((file->f_mode & FMODE_READ) == 0) f_mode 610 drivers/sbus/char/openprom.c if ((file->f_mode & FMODE_READ) == 0) f_mode 619 drivers/sbus/char/openprom.c if ((file->f_mode & FMODE_READ) == 0) f_mode 624 drivers/sbus/char/openprom.c if ((file->f_mode & FMODE_WRITE) == 0) f_mode 242 drivers/scsi/sg.c return blk_verify_command(cmd, filp->f_mode); f_mode 1105 drivers/scsi/sg.c return sg_scsi_ioctl(sdp->device->request_queue, NULL, filp->f_mode, p); f_mode 1259 drivers/scsi/st.c filp->f_mode &= ~(FMODE_PREAD | FMODE_PWRITE); f_mode 3842 drivers/scsi/st.c file->f_mode, cmd_in, p); f_mode 409 drivers/staging/android/ashmem.c vmfile->f_mode |= FMODE_LSEEK; f_mode 451 drivers/staging/gasket/apex_driver.c return !!(filp->f_mode & FMODE_WRITE); f_mode 1189 drivers/staging/gasket/gasket_core.c current->tgid, task_name, filp->f_mode, f_mode 1190 drivers/staging/gasket/gasket_core.c (filp->f_mode & FMODE_WRITE), is_root); f_mode 1193 drivers/staging/gasket/gasket_core.c if (!(filp->f_mode & FMODE_WRITE)) { f_mode 1267 drivers/staging/gasket/gasket_core.c current->tgid, task_name, file->f_mode, f_mode 1268 drivers/staging/gasket/gasket_core.c (file->f_mode & FMODE_WRITE), is_root); f_mode 1272 drivers/staging/gasket/gasket_core.c if (file->f_mode & FMODE_WRITE) { f_mode 233 drivers/staging/gasket/gasket_ioctl.c read = !!(filp->f_mode & FMODE_READ); f_mode 234 drivers/staging/gasket/gasket_ioctl.c write = !!(filp->f_mode & FMODE_WRITE); f_mode 216 drivers/staging/isdn/hysdn/hysdn_procconf.c if (!(file->f_mode & FMODE_READ)) f_mode 241 drivers/staging/isdn/hysdn/hysdn_procconf.c filep->f_mode); f_mode 243 drivers/staging/isdn/hysdn/hysdn_procconf.c if ((filep->f_mode & (FMODE_READ | FMODE_WRITE)) == FMODE_WRITE) { f_mode 255 drivers/staging/isdn/hysdn/hysdn_procconf.c } else if ((filep->f_mode & (FMODE_READ | FMODE_WRITE)) == FMODE_READ) { f_mode 315 drivers/staging/isdn/hysdn/hysdn_procconf.c filep->f_mode); f_mode 317 drivers/staging/isdn/hysdn/hysdn_procconf.c if ((filep->f_mode & (FMODE_READ | FMODE_WRITE)) == FMODE_WRITE) { f_mode 327 drivers/staging/isdn/hysdn/hysdn_procconf.c } else if ((filep->f_mode & (FMODE_READ | FMODE_WRITE)) == FMODE_READ) { f_mode 207 drivers/staging/isdn/hysdn/hysdn_proclog.c if ((filep->f_mode & (FMODE_READ | FMODE_WRITE)) == FMODE_WRITE) { f_mode 210 drivers/staging/isdn/hysdn/hysdn_proclog.c } else if ((filep->f_mode & (FMODE_READ | FMODE_WRITE)) == FMODE_READ) { f_mode 246 drivers/staging/isdn/hysdn/hysdn_proclog.c if ((filep->f_mode & (FMODE_READ | FMODE_WRITE)) == FMODE_WRITE) { f_mode 291 drivers/staging/isdn/hysdn/hysdn_proclog.c if ((file->f_mode & (FMODE_READ | FMODE_WRITE)) == FMODE_WRITE) f_mode 822 drivers/tty/pty.c filp->f_mode |= FMODE_NONOTIFY; f_mode 149 drivers/tty/tty_jobctrl.c if (filp->f_mode & FMODE_READ) f_mode 379 drivers/tty/tty_jobctrl.c if ((file->f_mode & FMODE_READ) == 0 && !capable(CAP_SYS_ADMIN)) { f_mode 2494 drivers/usb/core/devio.c if (!(file->f_mode & FMODE_WRITE)) f_mode 2730 drivers/usb/core/devio.c if (file->f_mode & FMODE_WRITE && !list_empty(&ps->async_completed)) f_mode 204 drivers/usb/gadget/function/storage_common.c if (!(filp->f_mode & FMODE_WRITE)) f_mode 217 drivers/usb/gadget/function/storage_common.c if (!(filp->f_mode & FMODE_CAN_READ)) { f_mode 221 drivers/usb/gadget/function/storage_common.c if (!(filp->f_mode & FMODE_CAN_WRITE)) f_mode 1208 drivers/usb/mon/mon_bin.c if (file->f_mode & FMODE_READ) f_mode 1479 drivers/vfio/vfio.c filep->f_mode |= (FMODE_LSEEK | FMODE_PREAD | FMODE_PWRITE); f_mode 906 fs/9p/vfs_inode.c file->f_mode |= FMODE_CREATED; f_mode 345 fs/9p/vfs_inode_dotl.c file->f_mode |= FMODE_CREATED; f_mode 140 fs/afs/file.c if (file->f_mode & FMODE_WRITE) { f_mode 173 fs/afs/file.c if ((file->f_mode & FMODE_WRITE)) f_mode 1533 fs/aio.c if (unlikely(!(file->f_mode & FMODE_READ))) f_mode 1562 fs/aio.c if (unlikely(!(file->f_mode & FMODE_WRITE))) f_mode 210 fs/autofs/autofs_i.h if (!(pipe->f_mode & FMODE_CAN_WRITE)) f_mode 1834 fs/block_dev.c filp->f_mode |= FMODE_NOWAIT; f_mode 1837 fs/block_dev.c filp->f_mode |= FMODE_NDELAY; f_mode 1839 fs/block_dev.c filp->f_mode |= FMODE_EXCL; f_mode 1841 fs/block_dev.c filp->f_mode |= FMODE_WRITE_IOCTL; f_mode 1850 fs/block_dev.c return blkdev_get(bdev, filp->f_mode, filp); f_mode 1940 fs/block_dev.c blkdev_put(bdev, filp->f_mode); f_mode 1947 fs/block_dev.c fmode_t mode = file->f_mode; f_mode 3463 fs/btrfs/file.c filp->f_mode |= FMODE_NOWAIT; f_mode 370 fs/ceph/file.c if (ceph_snap(inode) != CEPH_NOSNAP && (file->f_mode & FMODE_WRITE)) f_mode 522 fs/ceph/file.c file->f_mode |= FMODE_CREATED; f_mode 540 fs/cifs/dir.c file->f_mode |= FMODE_CREATED; f_mode 359 fs/cifs/file.c if (file->f_mode & FMODE_READ) f_mode 2629 fs/cifs/file.c if (file->f_mode & FMODE_WRITE) f_mode 89 fs/cifs/ioctl.c if (!(dst_file->f_mode & FMODE_WRITE)) { f_mode 406 fs/configfs/file.c if (file->f_mode & FMODE_WRITE) { f_mode 419 fs/configfs/file.c if (file->f_mode & FMODE_READ) { f_mode 778 fs/coredump.c if (!(cprm.file->f_mode & FMODE_CAN_WRITE)) f_mode 150 fs/debugfs/file.c !(filp->f_mode & FMODE_WRITE) && f_mode 142 fs/ext2/file.c if (filp->f_mode & FMODE_WRITE) { f_mode 320 fs/ext4/dir.c if ((filp->f_mode & FMODE_32BITHASH) || f_mode 321 fs/ext4/dir.c (!(filp->f_mode & FMODE_64BITHASH) && is_32bit_api())) f_mode 329 fs/ext4/dir.c if ((filp->f_mode & FMODE_32BITHASH) || f_mode 330 fs/ext4/dir.c (!(filp->f_mode & FMODE_64BITHASH) && is_32bit_api())) f_mode 338 fs/ext4/dir.c if ((filp->f_mode & FMODE_32BITHASH) || f_mode 339 fs/ext4/dir.c (!(filp->f_mode & FMODE_64BITHASH) && is_32bit_api())) f_mode 350 fs/ext4/dir.c if ((filp->f_mode & FMODE_32BITHASH) || f_mode 351 fs/ext4/dir.c (!(filp->f_mode & FMODE_64BITHASH) && is_32bit_api())) f_mode 93 fs/ext4/file.c if ((filp->f_mode & FMODE_WRITE) && f_mode 468 fs/ext4/file.c if (filp->f_mode & FMODE_WRITE) { f_mode 474 fs/ext4/file.c filp->f_mode |= FMODE_NOWAIT; f_mode 958 fs/ext4/ioctl.c if (!(filp->f_mode & FMODE_READ) || f_mode 959 fs/ext4/ioctl.c !(filp->f_mode & FMODE_WRITE)) f_mode 971 fs/ext4/ioctl.c if (!(donor.file->f_mode & FMODE_WRITE)) { f_mode 1053 fs/ext4/ioctl.c if (!(filp->f_mode & FMODE_WRITE)) f_mode 510 fs/f2fs/file.c filp->f_mode |= FMODE_NOWAIT; f_mode 1634 fs/f2fs/file.c if (!(filp->f_mode & FMODE_WRITE) || f_mode 2686 fs/f2fs/file.c if (!(filp->f_mode & FMODE_READ) || f_mode 2687 fs/f2fs/file.c !(filp->f_mode & FMODE_WRITE)) f_mode 2698 fs/f2fs/file.c if (!(dst.file->f_mode & FMODE_WRITE)) { f_mode 186 fs/fat/file.c if ((filp->f_mode & FMODE_WRITE) && f_mode 456 fs/fcntl.c if (unlikely(f.file->f_mode & FMODE_PATH)) { f_mode 483 fs/fcntl.c if (unlikely(f.file->f_mode & FMODE_PATH)) { f_mode 620 fs/fcntl.c if (unlikely(f.file->f_mode & FMODE_PATH)) { f_mode 722 fs/file.c if (file->f_mode & mask) f_mode 772 fs/file.c if (!file || unlikely(file->f_mode & mask)) f_mode 798 fs/file.c if (file && (file->f_mode & FMODE_ATOMIC_POS)) { f_mode 56 fs/file_table.c if (!(f->f_mode & FMODE_NOACCOUNT)) f_mode 118 fs/file_table.c f->f_mode = OPEN_FMODE(flags); f_mode 176 fs/file_table.c f->f_mode |= FMODE_NOACCOUNT; f_mode 201 fs/file_table.c if ((file->f_mode & FMODE_READ) && f_mode 203 fs/file_table.c file->f_mode |= FMODE_CAN_READ; f_mode 204 fs/file_table.c if ((file->f_mode & FMODE_WRITE) && f_mode 206 fs/file_table.c file->f_mode |= FMODE_CAN_WRITE; f_mode 207 fs/file_table.c file->f_mode |= FMODE_OPENED; f_mode 209 fs/file_table.c if ((file->f_mode & (FMODE_READ | FMODE_WRITE)) == FMODE_READ) f_mode 259 fs/file_table.c fmode_t mode = file->f_mode; f_mode 261 fs/file_table.c if (unlikely(!(file->f_mode & FMODE_OPENED))) f_mode 545 fs/fuse/dir.c file->f_mode |= FMODE_CREATED; f_mode 212 fs/fuse/file.c if ((file->f_mode & FMODE_WRITE) && fc->writeback_cache) f_mode 681 fs/gfs2/file.c if (!(file->f_mode & FMODE_WRITE)) f_mode 769 fs/gfs2/inode.c file->f_mode |= FMODE_CREATED; f_mode 1248 fs/gfs2/inode.c if (!(file->f_mode & FMODE_OPENED)) f_mode 306 fs/hostfs/hostfs_kern.c mode = file->f_mode & (FMODE_READ | FMODE_WRITE); f_mode 1926 fs/inode.c if (unlikely(file->f_mode & FMODE_NOCMTIME)) f_mode 1408 fs/io_uring.c if (unlikely(!(file->f_mode & FMODE_READ))) f_mode 1473 fs/io_uring.c if (unlikely(!(file->f_mode & FMODE_WRITE))) f_mode 59 fs/jfs/file.c if (S_ISREG(inode->i_mode) && file->f_mode & FMODE_WRITE && f_mode 636 fs/kernfs/file.c if ((file->f_mode & FMODE_WRITE) && f_mode 640 fs/kernfs/file.c if ((file->f_mode & FMODE_READ) && f_mode 713 fs/kernfs/file.c if (file->f_mode & FMODE_WRITE) f_mode 714 fs/kernfs/file.c file->f_mode |= FMODE_PWRITE; f_mode 1819 fs/locks.c if (filp->f_mode & FMODE_WRITE) f_mode 1821 fs/locks.c else if (filp->f_mode & FMODE_READ) f_mode 2231 fs/locks.c !(f.file->f_mode & (FMODE_READ|FMODE_WRITE))) f_mode 2459 fs/locks.c if (!(fl->fl_file->f_mode & FMODE_READ)) f_mode 2463 fs/locks.c if (!(fl->fl_file->f_mode & FMODE_WRITE)) f_mode 3067 fs/namei.c if (file->f_mode & FMODE_OPENED) { f_mode 3073 fs/namei.c if (file->f_mode & FMODE_CREATED) { f_mode 3088 fs/namei.c if (file->f_mode & FMODE_CREATED) f_mode 3134 fs/namei.c file->f_mode &= ~FMODE_CREATED; f_mode 3219 fs/namei.c file->f_mode |= FMODE_CREATED; f_mode 3326 fs/namei.c if (file->f_mode & FMODE_OPENED) { f_mode 3327 fs/namei.c if ((file->f_mode & FMODE_CREATED) || f_mode 3335 fs/namei.c if (file->f_mode & FMODE_CREATED) { f_mode 3410 fs/namei.c BUG_ON(file->f_mode & FMODE_OPENED); /* once it's opened, it's opened */ f_mode 3535 fs/namei.c if (likely(file->f_mode & FMODE_OPENED)) f_mode 395 fs/namespace.c if (!(file->f_mode & FMODE_WRITER)) f_mode 2355 fs/namespace.c file->f_mode |= FMODE_NEED_UNMOUNT; f_mode 3491 fs/namespace.c file->f_mode |= FMODE_NEED_UNMOUNT; f_mode 1590 fs/nfs/dir.c file->f_mode |= FMODE_CREATED; f_mode 147 fs/nfs/file.c if ((file->f_mode & FMODE_WRITE) == 0) f_mode 308 fs/nfs/file.c if (file->f_mode & FMODE_READ) f_mode 958 fs/nfs/inode.c fmode_t f_mode, f_mode 974 fs/nfs/inode.c ctx->mode = f_mode; f_mode 1101 fs/nfs/inode.c ctx = alloc_nfs_open_context(file_dentry(filp), filp->f_mode, filp); f_mode 60 fs/nfs/nfs4file.c ctx = alloc_nfs_open_context(file_dentry(filp), filp->f_mode, filp); f_mode 116 fs/nfs/nfs4file.c if ((file->f_mode & FMODE_WRITE) == 0) f_mode 7198 fs/nfs/nfs4proc.c if (!(filp->f_mode & FMODE_READ)) f_mode 7202 fs/nfs/nfs4proc.c if (!(filp->f_mode & FMODE_WRITE)) f_mode 224 fs/nfsd/filecache.c if (!file || !(file->f_mode & FMODE_WRITE)) f_mode 236 fs/nfsd/filecache.c if (!file || !(file->f_mode & FMODE_WRITE)) f_mode 762 fs/nfsd/vfs.c file->f_mode |= FMODE_64BITHASH; f_mode 764 fs/nfsd/vfs.c file->f_mode |= FMODE_32BITHASH; f_mode 94 fs/ocfs2/file.c if (file->f_mode & FMODE_WRITE) { f_mode 129 fs/ocfs2/file.c file->f_mode |= FMODE_NOWAIT; f_mode 2013 fs/ocfs2/file.c if (!(file->f_mode & FMODE_WRITE)) f_mode 1000 fs/ocfs2/move_extents.c if ((!S_ISREG(inode->i_mode)) || !(filp->f_mode & FMODE_WRITE)) { f_mode 177 fs/open.c if (!S_ISREG(inode->i_mode) || !(f.file->f_mode & FMODE_WRITE)) f_mode 266 fs/open.c if (!(file->f_mode & FMODE_WRITE)) f_mode 751 fs/open.c f->f_mode = FMODE_PATH | FMODE_OPENED; f_mode 762 fs/open.c if (f->f_mode & FMODE_WRITE && !special_file(inode->i_mode)) { f_mode 771 fs/open.c f->f_mode |= FMODE_WRITER; f_mode 776 fs/open.c f->f_mode |= FMODE_ATOMIC_POS; f_mode 793 fs/open.c f->f_mode |= FMODE_LSEEK | FMODE_PREAD | FMODE_PWRITE; f_mode 801 fs/open.c f->f_mode |= FMODE_OPENED; f_mode 802 fs/open.c if ((f->f_mode & (FMODE_READ | FMODE_WRITE)) == FMODE_READ) f_mode 804 fs/open.c if ((f->f_mode & FMODE_READ) && f_mode 806 fs/open.c f->f_mode |= FMODE_CAN_READ; f_mode 807 fs/open.c if ((f->f_mode & FMODE_WRITE) && f_mode 809 fs/open.c f->f_mode |= FMODE_CAN_WRITE; f_mode 826 fs/open.c if ((f->f_mode & FMODE_WRITE) && filemap_nr_thps(inode->i_mapping)) f_mode 835 fs/open.c if (f->f_mode & FMODE_WRITER) { f_mode 868 fs/open.c BUG_ON(file->f_mode & FMODE_OPENED); /* once it's opened, it's opened */ f_mode 1173 fs/open.c if (likely(!(filp->f_mode & FMODE_PATH))) { f_mode 1238 fs/open.c filp->f_mode &= ~(FMODE_LSEEK | FMODE_PREAD | FMODE_PWRITE); f_mode 1256 fs/open.c filp->f_mode &= ~(FMODE_LSEEK | FMODE_PREAD | FMODE_PWRITE | FMODE_ATOMIC_POS); f_mode 1257 fs/open.c filp->f_mode |= FMODE_STREAM; f_mode 551 fs/pipe.c if (filp->f_mode & FMODE_READ) { f_mode 557 fs/pipe.c if (filp->f_mode & FMODE_WRITE) { f_mode 591 fs/pipe.c if (file->f_mode & FMODE_READ) f_mode 593 fs/pipe.c if (file->f_mode & FMODE_WRITE) f_mode 614 fs/pipe.c if (filp->f_mode & FMODE_READ) f_mode 616 fs/pipe.c if ((filp->f_mode & FMODE_WRITE) && retval >= 0) { f_mode 618 fs/pipe.c if (retval < 0 && (filp->f_mode & FMODE_READ)) f_mode 934 fs/pipe.c filp->f_mode &= (FMODE_READ | FMODE_WRITE); f_mode 936 fs/pipe.c switch (filp->f_mode) { f_mode 811 fs/proc/base.c file->f_mode |= FMODE_UNSIGNED_OFFSET; f_mode 2144 fs/proc/base.c (void *)(unsigned long)vma->vm_file->f_mode); f_mode 2226 fs/proc/base.c p->mode = vma->vm_file->f_mode; f_mode 2923 fs/proc/base.c if (file->f_mode & FMODE_WRITE) { f_mode 95 fs/proc/fd.c *mode = file->f_mode; f_mode 102 fs/proc/fd.c fmode_t f_mode) f_mode 108 fs/proc/fd.c if (f_mode & FMODE_READ) f_mode 110 fs/proc/fd.c if (f_mode & FMODE_WRITE) f_mode 131 fs/proc/fd.c fmode_t f_mode; f_mode 132 fs/proc/fd.c if (tid_fd_mode(task, fd, &f_mode)) { f_mode 133 fs/proc/fd.c tid_fd_update_inode(task, inode, f_mode); f_mode 256 fs/proc/fd.c data.mode = f->f_mode; f_mode 66 fs/proc/proc_net.c if (file->f_mode & FMODE_WRITE && !PDE(inode)->write) f_mode 2161 fs/quota/dquot.c if (!error && (file->f_mode & FMODE_WRITE)) f_mode 39 fs/read_write.c return file->f_mode & FMODE_UNSIGNED_OFFSET; f_mode 296 fs/read_write.c if (file->f_mode & FMODE_LSEEK) { f_mode 450 fs/read_write.c if (!(file->f_mode & FMODE_READ)) f_mode 452 fs/read_write.c if (!(file->f_mode & FMODE_CAN_READ)) f_mode 507 fs/read_write.c if (!(file->f_mode & FMODE_CAN_WRITE)) f_mode 546 fs/read_write.c if (!(file->f_mode & FMODE_WRITE)) f_mode 548 fs/read_write.c if (!(file->f_mode & FMODE_CAN_WRITE)) f_mode 573 fs/read_write.c return file->f_mode & FMODE_STREAM ? NULL : &file->f_pos; f_mode 638 fs/read_write.c if (f.file->f_mode & FMODE_PREAD) f_mode 664 fs/read_write.c if (f.file->f_mode & FMODE_PWRITE) f_mode 920 fs/read_write.c if (!(file->f_mode & FMODE_READ)) f_mode 922 fs/read_write.c if (!(file->f_mode & FMODE_CAN_READ)) f_mode 957 fs/read_write.c if (!(file->f_mode & FMODE_WRITE)) f_mode 959 fs/read_write.c if (!(file->f_mode & FMODE_CAN_WRITE)) f_mode 1088 fs/read_write.c if (f.file->f_mode & FMODE_PREAD) f_mode 1111 fs/read_write.c if (f.file->f_mode & FMODE_PWRITE) f_mode 1234 fs/read_write.c if (f.file->f_mode & FMODE_PREAD) f_mode 1343 fs/read_write.c if (f.file->f_mode & FMODE_PWRITE) f_mode 1410 fs/read_write.c if (!(in.file->f_mode & FMODE_READ)) f_mode 1417 fs/read_write.c if (!(in.file->f_mode & FMODE_PREAD)) f_mode 1433 fs/read_write.c if (!(out.file->f_mode & FMODE_WRITE)) f_mode 2089 fs/read_write.c if (file->f_mode & FMODE_WRITE) f_mode 2156 fs/read_write.c if (!(file->f_mode & FMODE_READ)) f_mode 86 fs/seq_file.c file->f_mode &= ~FMODE_PWRITE; f_mode 862 fs/splice.c if (unlikely(!(in->f_mode & FMODE_READ))) f_mode 1054 fs/splice.c if (unlikely(!(out->f_mode & FMODE_WRITE))) f_mode 1114 fs/splice.c if (!(in->f_mode & FMODE_READ)) f_mode 1117 fs/splice.c if (!(out->f_mode & FMODE_WRITE)) f_mode 1134 fs/splice.c if (!(out->f_mode & FMODE_PWRITE)) f_mode 1142 fs/splice.c if (unlikely(!(out->f_mode & FMODE_WRITE))) f_mode 1171 fs/splice.c if (!(in->f_mode & FMODE_PREAD)) f_mode 1320 fs/splice.c if (f.file->f_mode & FMODE_WRITE) { f_mode 1322 fs/splice.c } else if (f.file->f_mode & FMODE_READ) { f_mode 1429 fs/splice.c if (in.file->f_mode & FMODE_READ) { f_mode 1432 fs/splice.c if (out.file->f_mode & FMODE_WRITE) f_mode 1778 fs/splice.c if (in.file->f_mode & FMODE_READ) { f_mode 1781 fs/splice.c if (out.file->f_mode & FMODE_WRITE) f_mode 229 fs/udf/file.c if (filp->f_mode & FMODE_WRITE && f_mode 299 fs/verity/open.c if (filp->f_mode & FMODE_WRITE) { f_mode 1039 fs/xfs/xfs_file.c file->f_mode |= FMODE_NOWAIT; f_mode 248 fs/xfs/xfs_ioctl.c filp->f_mode |= FMODE_NOCMTIME; f_mode 606 fs/xfs/xfs_ioctl.c if (!(filp->f_mode & FMODE_WRITE)) f_mode 614 fs/xfs/xfs_ioctl.c if (filp->f_mode & FMODE_NOCMTIME) f_mode 1789 fs/xfs/xfs_ioctl.c if (file->f_mode & FMODE_NOCMTIME) f_mode 1951 fs/xfs/xfs_ioctl.c if (!(f.file->f_mode & FMODE_WRITE) || f_mode 1952 fs/xfs/xfs_ioctl.c !(f.file->f_mode & FMODE_READ) || f_mode 1964 fs/xfs/xfs_ioctl.c if (!(tmp.file->f_mode & FMODE_WRITE) || f_mode 1965 fs/xfs/xfs_ioctl.c !(tmp.file->f_mode & FMODE_READ) || f_mode 953 include/linux/fs.h fmode_t f_mode; f_mode 3410 include/linux/fs.h if (!(ki->ki_filp->f_mode & FMODE_NOWAIT)) f_mode 65 include/linux/fsnotify.h if (file->f_mode & FMODE_NONOTIFY) f_mode 239 include/linux/fsnotify.h if (!(file->f_mode & FMODE_NONOTIFY)) f_mode 255 include/linux/fsnotify.h if (!(file->f_mode & FMODE_NONOTIFY)) f_mode 283 include/linux/fsnotify.h fmode_t mode = file->f_mode; f_mode 289 include/linux/fsnotify.h if (!(file->f_mode & FMODE_NONOTIFY)) f_mode 396 include/linux/nfs_fs.h extern struct nfs_open_context *alloc_nfs_open_context(struct dentry *dentry, fmode_t f_mode, struct file *filp); f_mode 56 include/linux/posix-clock.h int (*open) (struct posix_clock *pc, fmode_t f_mode); f_mode 1019 ipc/mqueue.c if (unlikely(!(f.file->f_mode & FMODE_WRITE))) { f_mode 1132 ipc/mqueue.c if (unlikely(!(f.file->f_mode & FMODE_READ))) { f_mode 219 kernel/acct.c if (!(file->f_mode & FMODE_CAN_WRITE)) { f_mode 361 kernel/bpf/syscall.c fmode_t mode = f.file->f_mode; f_mode 937 kernel/relay.c if (filp->f_mode & FMODE_READ) { f_mode 121 kernel/time/posix-clock.c err = clk->ops.open(clk, fp->f_mode); f_mode 235 kernel/time/posix-clock.c if ((cd.fp->f_mode & FMODE_WRITE) == 0) { f_mode 297 kernel/time/posix-clock.c if ((cd.fp->f_mode & FMODE_WRITE) == 0) { f_mode 3591 kernel/trace/ftrace.c if (file->f_mode & FMODE_WRITE) { f_mode 3610 kernel/trace/ftrace.c if (file->f_mode & FMODE_READ) { f_mode 4686 kernel/trace/ftrace.c if (file->f_mode & FMODE_READ) { f_mode 5028 kernel/trace/ftrace.c if (file->f_mode & FMODE_READ) { f_mode 5043 kernel/trace/ftrace.c if (file->f_mode & FMODE_WRITE) { f_mode 5230 kernel/trace/ftrace.c if (file->f_mode & FMODE_WRITE) { f_mode 5247 kernel/trace/ftrace.c if (file->f_mode & FMODE_READ) { f_mode 5261 kernel/trace/ftrace.c if (ret < 0 && file->f_mode & FMODE_WRITE) f_mode 5340 kernel/trace/ftrace.c if (file->f_mode & FMODE_READ) { f_mode 5350 kernel/trace/ftrace.c if (file->f_mode & FMODE_WRITE) { f_mode 5468 kernel/trace/ftrace.c if (file->f_mode & FMODE_READ) { f_mode 6582 kernel/trace/ftrace.c if ((file->f_mode & FMODE_WRITE) && f_mode 4209 kernel/trace/trace.c if (!(file->f_mode & FMODE_READ)) { f_mode 4271 kernel/trace/trace.c if ((file->f_mode & FMODE_WRITE) && (file->f_flags & O_TRUNC)) { f_mode 4286 kernel/trace/trace.c if (file->f_mode & FMODE_READ) { f_mode 4419 kernel/trace/trace.c if (file->f_mode & FMODE_READ) f_mode 6695 kernel/trace/trace.c if (file->f_mode & FMODE_READ) { f_mode 6815 kernel/trace/trace.c if (file->f_mode & FMODE_READ) f_mode 7163 kernel/trace/trace.c if ((file->f_mode & FMODE_WRITE) && (file->f_flags & O_TRUNC)) f_mode 7166 kernel/trace/trace.c if (file->f_mode & FMODE_READ) { f_mode 7191 kernel/trace/trace.c if (file->f_mode & FMODE_READ) f_mode 181 kernel/trace/trace_dynevent.c if ((file->f_mode & FMODE_WRITE) && (file->f_flags & O_TRUNC)) { f_mode 1809 kernel/trace/trace_events.c if ((file->f_mode & FMODE_WRITE) && f_mode 1830 kernel/trace/trace_events.c if ((file->f_mode & FMODE_WRITE) && f_mode 1506 kernel/trace/trace_events_hist.c if ((file->f_mode & FMODE_WRITE) && (file->f_flags & O_TRUNC)) { f_mode 191 kernel/trace/trace_events_trigger.c if ((file->f_mode & FMODE_WRITE) && f_mode 204 kernel/trace/trace_events_trigger.c if (file->f_mode & FMODE_READ) { f_mode 283 kernel/trace/trace_events_trigger.c if (file->f_mode & FMODE_READ) f_mode 966 kernel/trace/trace_kprobe.c if ((file->f_mode & FMODE_WRITE) && (file->f_flags & O_TRUNC)) { f_mode 770 kernel/trace/trace_uprobe.c if ((file->f_mode & FMODE_WRITE) && (file->f_flags & O_TRUNC)) { f_mode 81 mm/fadvise.c file->f_mode &= ~FMODE_RANDOM; f_mode 86 mm/fadvise.c file->f_mode |= FMODE_RANDOM; f_mode 92 mm/fadvise.c file->f_mode &= ~FMODE_RANDOM; f_mode 3061 mm/filemap.c if (!(file_in->f_mode & FMODE_READ) || f_mode 3062 mm/filemap.c !(file_out->f_mode & FMODE_WRITE) || f_mode 176 mm/memfd.c if (!(file->f_mode & FMODE_WRITE)) f_mode 312 mm/memfd.c file->f_mode |= FMODE_LSEEK | FMODE_PREAD | FMODE_PWRITE; f_mode 1366 mm/mmap.c if (file->f_mode & FMODE_UNSIGNED_OFFSET) f_mode 1491 mm/mmap.c if (!(file->f_mode & FMODE_WRITE)) f_mode 1501 mm/mmap.c if (IS_APPEND(inode) && (file->f_mode & FMODE_WRITE)) f_mode 1511 mm/mmap.c if (!(file->f_mode & FMODE_WRITE)) f_mode 1516 mm/mmap.c if (!(file->f_mode & FMODE_READ)) f_mode 851 mm/nommu.c if (!(file->f_mode & FMODE_CAN_READ)) f_mode 855 mm/nommu.c if (!(file->f_mode & FMODE_READ)) f_mode 861 mm/nommu.c !(file->f_mode & FMODE_WRITE)) f_mode 865 mm/nommu.c (file->f_mode & FMODE_WRITE)) f_mode 521 mm/readahead.c if (filp && (filp->f_mode & FMODE_RANDOM)) { f_mode 585 mm/readahead.c if (!f.file || !(f.file->f_mode & FMODE_READ)) f_mode 1018 net/sunrpc/cache.c if (filp->f_mode & FMODE_READ) { f_mode 1031 net/sunrpc/cache.c if (filp->f_mode & FMODE_WRITE) f_mode 1062 net/sunrpc/cache.c if (filp->f_mode & FMODE_WRITE) { f_mode 229 net/sunrpc/rpc_pipe.c if (filp->f_mode & FMODE_READ) f_mode 231 net/sunrpc/rpc_pipe.c if (filp->f_mode & FMODE_WRITE) f_mode 258 net/sunrpc/rpc_pipe.c if (filp->f_mode & FMODE_WRITE) f_mode 260 net/sunrpc/rpc_pipe.c if (filp->f_mode & FMODE_READ) { f_mode 29 net/unix/scm.c if (S_ISSOCK(inode->i_mode) && !(filp->f_mode & FMODE_PATH)) { f_mode 221 security/apparmor/include/file.h if (file->f_mode & FMODE_WRITE) f_mode 223 security/apparmor/include/file.h if (file->f_mode & FMODE_READ) f_mode 195 security/integrity/iint.c if (!(file->f_mode & FMODE_READ)) f_mode 340 security/integrity/ima/ima_appraise.c if (file->f_mode & FMODE_CREATED) f_mode 427 security/integrity/ima/ima_crypto.c if (!(file->f_mode & FMODE_READ)) { f_mode 439 security/integrity/ima/ima_crypto.c f->f_mode |= FMODE_READ; f_mode 459 security/integrity/ima/ima_crypto.c f->f_mode &= ~FMODE_READ; f_mode 114 security/integrity/ima/ima_main.c fmode_t mode = file->f_mode; f_mode 149 security/integrity/ima/ima_main.c fmode_t mode = file->f_mode; f_mode 364 security/integrity/ima/ima_main.c if (file->f_mode & FMODE_WRITE) f_mode 2009 security/selinux/hooks.c if (file->f_mode & FMODE_READ) f_mode 2011 security/selinux/hooks.c if (file->f_mode & FMODE_WRITE) { f_mode 6740 security/selinux/hooks.c bpf_map_fmode_to_av(file->f_mode), NULL); f_mode 1858 security/smack/smack_lsm.c if (file->f_mode & FMODE_READ) f_mode 1860 security/smack/smack_lsm.c if (file->f_mode & FMODE_WRITE) f_mode 2470 security/tomoyo/common.c if (!(file->f_mode & FMODE_READ)) { f_mode 2487 security/tomoyo/common.c if (!(file->f_mode & FMODE_WRITE)) { f_mode 2383 sound/core/oss/pcm_oss.c fmode_t f_mode = file->f_mode; f_mode 2392 sound/core/oss/pcm_oss.c if ((f_mode & (FMODE_WRITE|FMODE_READ)) == (FMODE_WRITE|FMODE_READ) && f_mode 2394 sound/core/oss/pcm_oss.c f_mode = FMODE_WRITE; f_mode 2403 sound/core/oss/pcm_oss.c if (! (f_mode & FMODE_WRITE)) f_mode 2406 sound/core/oss/pcm_oss.c if (! (f_mode & FMODE_READ)) f_mode 2475 sound/core/oss/pcm_oss.c if (file->f_mode & FMODE_WRITE) f_mode 2478 sound/core/oss/pcm_oss.c if (file->f_mode & FMODE_READ) f_mode 65 sound/core/rawmidi.c switch (file->f_mode & (FMODE_READ | FMODE_WRITE)) { f_mode 77 sound/core/seq/seq_clientmgr.c switch (file->f_mode & (FMODE_READ | FMODE_WRITE)) { f_mode 218 sound/isa/msnd/msnd.c if ((file ? file->f_mode : chip->mode) & FMODE_READ) { f_mode 229 sound/isa/msnd/msnd.c if ((file ? file->f_mode : chip->mode) & FMODE_WRITE) { f_mode 683 sound/oss/dmasound/dmasound_core.c if (file->f_mode & FMODE_WRITE ) f_mode 685 sound/oss/dmasound/dmasound_core.c if (file->f_mode & FMODE_WRITE) f_mode 704 sound/oss/dmasound/dmasound_core.c if (file->f_mode & mode) { f_mode 716 sound/oss/dmasound/dmasound_core.c if (file->f_mode & mode) { f_mode 775 sound/oss/dmasound/dmasound_core.c if (file->f_mode & FMODE_READ) { f_mode 782 sound/oss/dmasound/dmasound_core.c dmasound.mach.sq_open(file->f_mode); f_mode 886 sound/oss/dmasound/dmasound_core.c if (file->f_mode & FMODE_WRITE) { f_mode 895 sound/oss/dmasound/dmasound_core.c if (file->f_mode & shared_resource_owner) { /* it's us that has them */ f_mode 1016 sound/oss/dmasound/dmasound_core.c if (file->f_mode & FMODE_WRITE) { f_mode 1038 sound/oss/dmasound/dmasound_core.c if (file->f_mode & FMODE_WRITE) { f_mode 1043 sound/oss/dmasound/dmasound_core.c if (file->f_mode & shared_resource_owner) f_mode 1056 sound/oss/dmasound/dmasound_core.c if (shared_resources_are_mine(file->f_mode)) { f_mode 1070 sound/oss/dmasound/dmasound_core.c if (shared_resources_are_mine(file->f_mode) && f_mode 1079 sound/oss/dmasound/dmasound_core.c if (shared_resources_are_mine(file->f_mode) && f_mode 1089 sound/oss/dmasound/dmasound_core.c if (shared_resources_are_mine(file->f_mode) && f_mode 1116 sound/oss/dmasound/dmasound_core.c if (file->f_mode & FMODE_WRITE) { f_mode 1129 sound/oss/dmasound/dmasound_core.c if (file->f_mode & FMODE_WRITE) { f_mode 33 tools/perf/tests/bpf-script-test-prologue.c fmode_t f_mode = (fmode_t)_f_mode; f_mode 37 tools/perf/tests/bpf-script-test-prologue.c if (f_mode & FMODE_WRITE)