Home
last modified time | relevance | path

Searched refs:S_ISBLK (Results 1 – 25 of 71) sorted by relevance

123

/linux-6.6.21/include/linux/
Ddevice_cgroup.h24 if (S_ISBLK(inode->i_mode)) in devcgroup_inode_permission()
44 if (!S_ISBLK(mode) && !S_ISCHR(mode)) in devcgroup_inode_mknod()
50 if (S_ISBLK(mode)) in devcgroup_inode_mknod()
/linux-6.6.21/drivers/target/
Dtarget_core_file.c94 if (S_ISBLK(inode->i_mode)) in fd_configure_unmap()
154 if (S_ISBLK(inode->i_mode)) { in fd_configure_device()
354 if (S_ISBLK(file_inode(fd)->i_mode)) { in fd_do_rw()
553 if (S_ISBLK(inode->i_mode)) { in fd_execute_unmap()
819 if (S_ISBLK(i->i_mode)) in fd_get_blocks()
842 if (S_ISBLK(inode->i_mode)) { in fd_init_prot()
/linux-6.6.21/fs/hpfs/
Dinode.c98 if (S_ISBLK(mode) || S_ISCHR(mode)) { in hpfs_read_inode()
105 if (S_ISBLK(mode) || S_ISCHR(mode) || S_ISFIFO(mode) || S_ISSOCK(mode)) { in hpfs_read_inode()
175 if (S_ISBLK(i->i_mode) || S_ISCHR(i->i_mode)) { in hpfs_write_inode_ea()
/linux-6.6.21/tools/include/uapi/linux/
Dstat.h25 #define S_ISBLK(m) (((m) & S_IFMT) == S_IFBLK) macro
/linux-6.6.21/include/uapi/linux/
Dstat.h25 #define S_ISBLK(m) (((m) & S_IFMT) == S_IFBLK) macro
/linux-6.6.21/fs/sysv/
Dinode.c216 if (S_ISCHR(inode->i_mode) || S_ISBLK(inode->i_mode)) in sysv_iget()
261 if (S_ISCHR(inode->i_mode) || S_ISBLK(inode->i_mode)) in __sysv_write_inode()
/linux-6.6.21/drivers/usb/gadget/function/
Dstorage_common.c209 if ((!S_ISREG(inode->i_mode) && !S_ISBLK(inode->i_mode))) { in fsg_lun_open()
235 } else if (S_ISBLK(inode->i_mode)) { in fsg_lun_open()
/linux-6.6.21/tools/include/nolibc/
Dtypes.h38 #define S_ISBLK(mode) (((mode) & S_IFMT) == S_IFBLK) macro
/linux-6.6.21/drivers/md/
Dmd-autodetect.c155 if (init_stat(comp_name, &stat, 0) == 0 && S_ISBLK(stat.mode)) in md_setup_drive()
/linux-6.6.21/arch/um/os-Linux/
Dfile.c149 else if (S_ISBLK(buf.ust_mode)) in os_file_type()
322 if (S_ISBLK(buf.ust_mode)) { in os_file_size()
/linux-6.6.21/init/
Ddo_mounts_rd.c181 if (!S_ISBLK(inode->i_mode)) in nr_blocks()
/linux-6.6.21/fs/
Dsync.c273 if (!S_ISREG(i_mode) && !S_ISBLK(i_mode) && !S_ISDIR(i_mode) && in sync_file_range()
Dinit.c149 else if (!(S_ISBLK(mode) || S_ISCHR(mode))) in init_mknod()
Dfs_parser.c176 !S_ISBLK(d_backing_inode(_path->dentry)->i_mode)) { in fs_lookup_param()
/linux-6.6.21/fs/pstore/
Dblk.c219 if (!S_ISBLK(file_inode(psblk_file)->i_mode)) { in __register_pstore_blk()
/linux-6.6.21/fs/hfsplus/
Ddir.c243 else if (S_ISBLK(mode)) in hfsplus_readdir()
491 if (S_ISBLK(mode) || S_ISCHR(mode) || S_ISFIFO(mode) || S_ISSOCK(mode)) in hfsplus_mknod()
/linux-6.6.21/fs/f2fs/
Dinode.c68 if (S_ISCHR(inode->i_mode) || S_ISBLK(inode->i_mode) || in __get_inode_rdev()
97 if (S_ISCHR(inode->i_mode) || S_ISBLK(inode->i_mode)) { in __set_inode_rdev()
626 } else if (S_ISCHR(inode->i_mode) || S_ISBLK(inode->i_mode) || in f2fs_iget()
/linux-6.6.21/fs/ufs/
Dinode.c596 if (S_ISCHR(mode) || S_ISBLK(mode) || inode->i_blocks) { in ufs1_read_inode()
643 if (S_ISCHR(mode) || S_ISBLK(mode) || inode->i_blocks) { in ufs2_read_inode()
744 if (S_ISCHR(inode->i_mode) || S_ISBLK(inode->i_mode)) { in ufs1_update_inode()
785 if (S_ISCHR(inode->i_mode) || S_ISBLK(inode->i_mode)) { in ufs2_update_inode()
/linux-6.6.21/fs/minix/
Dinode.c593 if (S_ISCHR(inode->i_mode) || S_ISBLK(inode->i_mode)) in V1_minix_update_inode()
622 if (S_ISCHR(inode->i_mode) || S_ISBLK(inode->i_mode)) in V2_minix_update_inode()
/linux-6.6.21/security/tomoyo/
Daudit.c214 if (S_ISCHR(mode) || S_ISBLK(mode)) { in tomoyo_print_header()
/linux-6.6.21/drivers/base/
Ddevtmpfs.c296 if (!S_ISBLK(stat->mode)) in dev_mynode()
/linux-6.6.21/drivers/block/
Dloop.c192 if (S_ISBLK(inode->i_mode)) in __loop_update_dio()
527 return i && S_ISBLK(i->i_mode) && imajor(i) == LOOP_MAJOR; in is_loop_device()
550 if (!S_ISREG(inode->i_mode) && !S_ISBLK(inode->i_mode)) in loop_validate_file()
769 if (S_ISBLK(inode->i_mode)) { in loop_config_discard()
/linux-6.6.21/io_uring/
Drw.c193 if (!S_ISBLK(mode) && !S_ISREG(mode)) in io_rw_should_reissue()
666 S_ISBLK(file_inode(req->file)->i_mode); in need_complete_io()
/linux-6.6.21/mm/
Dswapfile.c2258 if (S_ISBLK(inode->i_mode)) { in setup_swap_extents()
2533 if (S_ISBLK(inode->i_mode)) { in SYSCALL_DEFINE1()
2646 S_ISBLK(file_inode(file)->i_mode) ? in swap_show()
2766 if (S_ISBLK(inode->i_mode)) { in claim_swapfile()
3209 if (inode && S_ISBLK(inode->i_mode) && p->bdev) { in SYSCALL_DEFINE2()
/linux-6.6.21/tools/testing/selftests/bpf/progs/
Dprofiler.inc.h34 #define S_ISBLK(m) (((m)&S_IFMT) == S_IFBLK) macro
791 if (S_ISDIR(mode) || S_ISCHR(mode) || S_ISBLK(mode) || S_ISFIFO(mode) || in kprobe_ret__do_filp_open()

123