Home
last modified time | relevance | path

Searched refs:FMODE_READ (Results 1 – 25 of 118) sorted by relevance

12345

/kernel/linux/linux-5.10/fs/
Dfile_table.c202 if ((file->f_mode & FMODE_READ) && in alloc_file()
210 if ((file->f_mode & (FMODE_READ | FMODE_WRITE)) == FMODE_READ) in alloc_file()
288 if ((mode & (FMODE_READ | FMODE_WRITE)) == FMODE_READ) in __fput()
Dpipe.c662 if (filp->f_mode & FMODE_READ) in pipe_poll()
676 if (filp->f_mode & FMODE_READ) { in pipe_poll()
718 if (file->f_mode & FMODE_READ) in pipe_release()
743 if (filp->f_mode & FMODE_READ) in pipe_fasync()
747 if (retval < 0 && (filp->f_mode & FMODE_READ)) in pipe_fasync()
1127 switch (filp->f_mode & (FMODE_READ | FMODE_WRITE)) { in fifo_open()
1128 case FMODE_READ: in fifo_open()
1170 case FMODE_READ | FMODE_WRITE: in fifo_open()
Dkernel_read_file.c181 if (!f.file || !(f.file->f_mode & FMODE_READ)) in kernel_read_file_from_fd()
Dread_write.c435 if (WARN_ON_ONCE(!(file->f_mode & FMODE_READ))) in __kernel_read()
475 if (!(file->f_mode & FMODE_READ)) in vfs_read()
783 if (!(file->f_mode & FMODE_READ)) in do_iter_read()
813 if (!(file->f_mode & FMODE_READ)) in vfs_iocb_iter_read()
1198 if (!(in.file->f_mode & FMODE_READ)) in do_sendfile()
1675 if (!(file_in->f_mode & FMODE_READ) || in generic_file_rw_checks()
/kernel/linux/linux-5.10/drivers/s390/block/
Ddasd_genhd.c104 bdev = blkdev_get_by_dev(disk_devt(block->gdp), FMODE_READ, NULL); in dasd_scan_partitions()
153 blkdev_put(bdev, FMODE_READ); in dasd_destroy_partitions()
/kernel/linux/linux-5.10/fs/nfs/blocklayout/
Ddev.c38 blkdev_put(dev->bdev, FMODE_READ | FMODE_WRITE); in bl_free_device()
246 bdev = blkdev_get_by_dev(dev, FMODE_READ | FMODE_WRITE, NULL); in bl_parse_simple()
319 bdev = blkdev_get_by_path(devname, FMODE_READ | FMODE_WRITE, NULL); in bl_open_udev_path()
346 bdev = blkdev_get_by_path(devname, FMODE_READ | FMODE_WRITE, NULL); in bl_open_dm_mpath_udev_path()
396 blkdev_put(d->bdev, FMODE_READ | FMODE_WRITE); in bl_parse_scsi()
/kernel/linux/linux-5.10/tools/perf/tests/
Dbpf-script-test-prologue.c23 #define FMODE_READ 0x1 macro
/kernel/linux/linux-5.10/drivers/md/
Dmd-autodetect.c172 bdev = blkdev_get_by_dev(mdev, FMODE_READ, NULL); in md_setup_drive()
234 blkdev_put(bdev, FMODE_READ); in md_setup_drive()
/kernel/linux/linux-5.10/drivers/hyperhold/
Dhp_device.c39 blkdev_put(dev->bdev, FMODE_READ | FMODE_WRITE | FMODE_EXCL); in unbind_bdev()
65 dev->bdev = blkdev_get_by_dev(inode->i_rdev, FMODE_READ | FMODE_WRITE | FMODE_EXCL, dev); in bind_bdev()
/kernel/linux/linux-5.10/drivers/sbus/char/
Dopenprom.c582 if ((file->f_mode & FMODE_READ) == 0) in openprom_ioctl()
598 if ((file->f_mode & FMODE_READ) == 0) in openprom_ioctl()
610 if ((file->f_mode & FMODE_READ) == 0) in openprom_ioctl()
619 if ((file->f_mode & FMODE_READ) == 0) in openprom_ioctl()
/kernel/linux/linux-5.10/fs/nfs/
Dread.c43 p->rw_mode = FMODE_READ; in nfs_readhdr_alloc()
343 ctx = nfs_find_open_context(inode, NULL, FMODE_READ); in nfs_readpage()
429 desc.ctx = nfs_find_open_context(inode, NULL, FMODE_READ); in nfs_readpages()
Ddelegation.h88 return NFS_PROTO(inode)->have_delegation(inode, FMODE_READ) && in nfs_have_delegated_attributes()
Dnfs4proc.c294 if (!inode || !nfs4_have_delegation(inode, FMODE_READ)) in nfs4_bitmap_copy_adjust()
1210 FMODE_READ)) in nfs4_update_changeattr_locked()
1257 return ctx->mode & (FMODE_READ|FMODE_WRITE|FMODE_EXEC); in _nfs4_ctx_to_accessmode()
1262 fmode_t ret = ctx->mode & (FMODE_READ|FMODE_WRITE); in _nfs4_ctx_to_openmode()
1264 return (ctx->mode & FMODE_EXEC) ? FMODE_READ | ret : ret; in _nfs4_ctx_to_openmode()
1273 switch (fmode & (FMODE_READ | FMODE_WRITE)) { in nfs4_map_atomic_open_share()
1274 case FMODE_READ: in nfs4_map_atomic_open_share()
1280 case FMODE_READ|FMODE_WRITE: in nfs4_map_atomic_open_share()
1357 p->o_arg.fmode = fmode & (FMODE_READ|FMODE_WRITE); in nfs4_opendata_alloc()
1464 switch(fmode & (FMODE_READ|FMODE_WRITE)) { in nfs4_mode_match_open_stateid()
[all …]
Dnfs4file.c355 filep = alloc_file_pseudo(r_ino, ss_mnt, read_name, FMODE_READ, in __nfs42_ssc_open()
361 filep->f_mode |= FMODE_READ; in __nfs42_ssc_open()
Dfile.c306 if (file->f_mode & FMODE_READ) in nfs_want_read_modify_write()
687 if (NFS_PROTO(inode)->have_delegation(inode, FMODE_READ)) in do_getlk()
770 if (!NFS_PROTO(inode)->have_delegation(inode, FMODE_READ)) { in do_setlk()
/kernel/linux/linux-5.10/arch/um/drivers/
Dhostaudio_kern.c193 if (file->f_mode & FMODE_READ) in hostaudio_open()
254 if (file->f_mode & FMODE_READ) in hostmixer_open_mixdev()
/kernel/liteos_a/fs/proc/include/
Dproc_fs.h82 #define FMODE_READ ((fmode_t)0x1) macro
/kernel/linux/linux-5.10/drivers/char/xillybus/
Dxillybus_core.c1448 if ((filp->f_mode & FMODE_READ) && (!channel->num_wr_buffers)) in xillybus_open()
1454 if ((filp->f_mode & FMODE_READ) && (filp->f_flags & O_NONBLOCK) && in xillybus_open()
1476 if (filp->f_mode & FMODE_READ) { in xillybus_open()
1488 if ((filp->f_mode & FMODE_READ) && in xillybus_open()
1502 if (filp->f_mode & FMODE_READ) { in xillybus_open()
1552 if (filp->f_mode & FMODE_READ) in xillybus_open()
1591 if (filp->f_mode & FMODE_READ) { in xillybus_release()
/kernel/linux/linux-5.10/kernel/power/
Dhibernate.c691 swsusp_close(FMODE_READ | FMODE_EXCL); in load_image_and_restore()
981 swsusp_close(FMODE_READ | FMODE_EXCL); in software_resume()
1016 swsusp_close(FMODE_READ | FMODE_EXCL); in software_resume()
/kernel/linux/linux-5.10/drivers/char/
Dapm-emulation.c368 as->reader = (filp->f_mode & FMODE_READ) == FMODE_READ; in apm_open()
/kernel/linux/linux-5.10/drivers/mtd/devices/
Dblock2mtd.c209 blkdev_put(dev->blkdev, FMODE_READ|FMODE_WRITE|FMODE_EXCL); in block2mtd_free_device()
222 const fmode_t mode = FMODE_READ | FMODE_WRITE | FMODE_EXCL; in add_device()
/kernel/linux/linux-5.10/drivers/tty/
Dtty_jobctrl.c149 if (filp->f_mode & FMODE_READ) in tty_open_proc_set_tty()
382 if ((file->f_mode & FMODE_READ) == 0 && !capable(CAP_SYS_ADMIN)) { in tiocsctty()
/kernel/linux/linux-5.10/fs/pstore/
Dblk.c233 fmode_t mode = FMODE_READ | FMODE_WRITE; in psblk_get_bdev()
276 fmode_t mode = FMODE_READ | FMODE_WRITE; in psblk_put_bdev()
/kernel/linux/linux-5.10/drivers/nvme/target/
Dio-cmd-bdev.c71 FMODE_READ | FMODE_WRITE, NULL); in nvmet_bdev_ns_enable()
95 blkdev_put(ns->bdev, FMODE_WRITE | FMODE_READ); in nvmet_bdev_ns_disable()
/kernel/linux/linux-5.10/drivers/target/
Dtarget_core_iblock.c93 mode = FMODE_READ|FMODE_EXCL; in iblock_configure_device()
162 blkdev_put(ib_dev->ibd_bd, FMODE_WRITE|FMODE_READ|FMODE_EXCL); in iblock_configure_device()
187 blkdev_put(ib_dev->ibd_bd, FMODE_WRITE|FMODE_READ|FMODE_EXCL); in iblock_destroy_device()

12345