tag | line | file | source code |
f_mode | 285 | arch/alpha/kernel/osf_sys.c | dummy.f_mode = rdonly ? 1 : 3; |
f_mode | 3163 | drivers/block/floppy.c | #define IOCTL_ALLOWED (filp && (filp->f_mode & IOCTL_MODE_BIT)) |
f_mode | 3392 | drivers/block/floppy.c | if (!filp || (filp->f_mode & (2 | OPEN_WRITE_BIT))) |
f_mode | 3489 | drivers/block/floppy.c | if ((filp->f_mode & 2) || (permission(inode,2) == 0)) |
f_mode | 3490 | drivers/block/floppy.c | filp->f_mode |= IOCTL_MODE_BIT; |
f_mode | 3491 | drivers/block/floppy.c | if (filp->f_mode & 2) |
f_mode | 3492 | drivers/block/floppy.c | filp->f_mode |= OPEN_WRITE_BIT; |
f_mode | 3499 | drivers/block/floppy.c | if (filp->f_mode & 3) { |
f_mode | 3505 | drivers/block/floppy.c | if ((filp->f_mode & 2) && !(UTESTF(FD_DISK_WRITABLE))) |
f_mode | 2560 | drivers/block/ide-cd.c | if (fp->f_mode & 2) |
f_mode | 433 | drivers/block/rd.c | infile.f_mode = 1; /* read only */ |
f_mode | 439 | drivers/block/rd.c | outfile.f_mode = 3; /* read/write */ |
f_mode | 2735 | drivers/cdrom/cdu31a.c | if ((filp) && filp->f_mode & 2) |
f_mode | 1102 | drivers/cdrom/mcd.c | if (fp->f_mode & 2) /* write access? */ |
f_mode | 4891 | drivers/cdrom/sbpcd.c | if (fp->f_mode & 2) |
f_mode | 1318 | drivers/cdrom/sjcd.c | if( fp->f_mode & 2 ) return( -EROFS ); |
f_mode | 125 | drivers/scsi/sd.c | if ( (rscsi_disks[target].write_prot) && (filp->f_mode & 2) ) { |
f_mode | 524 | drivers/scsi/sr.c | if (filp->f_mode & 2) |
f_mode | 119 | fs/binfmt_aout.c | file.f_mode = 3; |
f_mode | 1019 | fs/binfmt_elf.c | file.f_mode = 3; |
f_mode | 974 | fs/dquot.c | filp->f_mode = (O_RDWR + 1) & O_ACCMODE; |
f_mode | 134 | fs/exec.c | f->f_mode = (mode+1) & O_ACCMODE; |
f_mode | 332 | fs/exec.c | file.f_mode = 1; |
f_mode | 210 | fs/ext2/file.c | if (filp->f_mode & 2) |
f_mode | 18 | fs/fifo.c | switch( filp->f_mode ) { |
f_mode | 135 | fs/file_table.c | if (filp->f_mode & FMODE_WRITE && filp->f_inode->i_sb->dq_op) { |
f_mode | 234 | fs/inode.c | if (S_ISREG(file->f_inode->i_mode) && (file->f_mode & 2)) |
f_mode | 164 | fs/locks.c | if ((file_lock.fl_type != F_UNLCK) && !(filp->f_mode & 3)) |
f_mode | 240 | fs/locks.c | if (!(filp->f_mode & 1)) |
f_mode | 244 | fs/locks.c | if (!(filp->f_mode & 2)) |
f_mode | 249 | fs/locks.c | if (!(filp->f_mode & 3)) |
f_mode | 127 | fs/open.c | if (S_ISDIR(inode->i_mode) || !(file->f_mode & FMODE_WRITE)) |
f_mode | 489 | fs/open.c | f->f_mode = (flag+1) & O_ACCMODE; |
f_mode | 490 | fs/open.c | if (f->f_mode) |
f_mode | 497 | fs/open.c | if (f->f_mode & FMODE_WRITE) { |
f_mode | 532 | fs/open.c | if (f->f_mode & FMODE_WRITE) |
f_mode | 586 | fs/open.c | if (filp->f_mode & FMODE_WRITE) |
f_mode | 257 | fs/pipe.c | if (filp->f_mode & FMODE_READ) |
f_mode | 259 | fs/pipe.c | if (filp->f_mode & FMODE_WRITE) |
f_mode | 278 | fs/pipe.c | if (filp->f_mode & FMODE_READ) |
f_mode | 280 | fs/pipe.c | if (filp->f_mode & FMODE_WRITE) |
f_mode | 437 | fs/pipe.c | f[0]->f_mode = 1; /* read */ |
f_mode | 440 | fs/pipe.c | f[1]->f_mode = 2; /* write */ |
f_mode | 244 | fs/proc/inode.c | if (p->files->fd[ino]->f_mode & 1) |
f_mode | 246 | fs/proc/inode.c | if (p->files->fd[ino]->f_mode & 2) |
f_mode | 111 | fs/read_write.c | if (!(file->f_mode & 1)) |
f_mode | 132 | fs/read_write.c | if (!(file->f_mode & 2)) |
f_mode | 263 | fs/read_write.c | if (!(file->f_mode & 1)) |
f_mode | 276 | fs/read_write.c | if (!(file->f_mode & 2)) |
f_mode | 799 | fs/super.c | dummy.f_mode = (new_flags & MS_RDONLY) ? 1 : 3; |
f_mode | 886 | fs/super.c | filp.f_mode = 1; /* read only */ |
f_mode | 888 | fs/super.c | filp.f_mode = 3; /* read write */ |
f_mode | 892 | fs/super.c | filp.f_mode = 1; |
f_mode | 319 | include/linux/fs.h | mode_t f_mode; |
f_mode | 369 | kernel/sys.c | acct_file.f_mode = 3; |
f_mode | 545 | mm/filemap.c | file.f_mode = 3; |
f_mode | 74 | mm/mmap.c | if ((prot & PROT_WRITE) && !(file->f_mode & 2)) |
f_mode | 78 | mm/mmap.c | if (!(file->f_mode & 1)) |
f_mode | 129 | mm/mmap.c | if (file->f_mode & 1) |
f_mode | 143 | mm/mmap.c | if (!(file->f_mode & 2)) |
f_mode | 365 | mm/swapfile.c | filp.f_mode = 3; /* read write */ |
f_mode | 443 | mm/swapfile.c | filp.f_mode = 3; /* read write */ |
f_mode | 193 | net/socket.c | file->f_mode = 3; |