tag | line | file | source code |
f_mode | 274 | arch/alpha/kernel/osf_sys.c | dummy.f_mode = rdonly ? 1 : 3; |
f_mode | 3178 | drivers/block/floppy.c | #define IOCTL_ALLOWED (filp && (filp->f_mode & IOCTL_MODE_BIT)) |
f_mode | 3399 | drivers/block/floppy.c | if (!filp || (filp->f_mode & (2 | OPEN_WRITE_BIT))) |
f_mode | 3496 | drivers/block/floppy.c | if ((filp->f_mode & 2) || (permission(inode,2) == 0)) |
f_mode | 3497 | drivers/block/floppy.c | filp->f_mode |= IOCTL_MODE_BIT; |
f_mode | 3498 | drivers/block/floppy.c | if (filp->f_mode & 2) |
f_mode | 3499 | drivers/block/floppy.c | filp->f_mode |= OPEN_WRITE_BIT; |
f_mode | 3506 | drivers/block/floppy.c | if (filp->f_mode & 3) { |
f_mode | 3512 | drivers/block/floppy.c | if ((filp->f_mode & 2) && !(UTESTF(FD_DISK_WRITABLE))) |
f_mode | 2499 | drivers/block/ide-cd.c | if (fp->f_mode & 2) |
f_mode | 381 | drivers/block/rd.c | infile.f_mode = 1; /* read only */ |
f_mode | 387 | drivers/block/rd.c | outfile.f_mode = 3; /* read/write */ |
f_mode | 2733 | drivers/cdrom/cdu31a.c | if ((filp) && filp->f_mode & 2) |
f_mode | 1100 | drivers/cdrom/mcd.c | if (fp->f_mode & 2) /* write access? */ |
f_mode | 4842 | drivers/cdrom/sbpcd.c | if (fp->f_mode & 2) |
f_mode | 1378 | 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 | 1026 | fs/binfmt_elf.c | file.f_mode = 3; |
f_mode | 956 | fs/dquot.c | filp->f_mode = (O_RDWR + 1) & O_ACCMODE; |
f_mode | 129 | fs/exec.c | f->f_mode = (mode+1) & O_ACCMODE; |
f_mode | 208 | fs/exec.c | file.f_mode = 3; |
f_mode | 497 | 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 | 134 | fs/file_table.c | if (filp->f_mode & FMODE_WRITE && filp->f_inode->i_sb->dq_op) { |
f_mode | 212 | fs/inode.c | if (S_ISREG(file->f_inode->i_mode) && (file->f_mode & 2)) |
f_mode | 109 | fs/locks.c | if ((file_lock.fl_type != F_UNLCK) && !(filp->f_mode & 3)) |
f_mode | 185 | fs/locks.c | if (!(filp->f_mode & 1)) |
f_mode | 189 | fs/locks.c | if (!(filp->f_mode & 2)) |
f_mode | 194 | 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 | 478 | fs/open.c | f->f_mode = (flag+1) & O_ACCMODE; |
f_mode | 479 | fs/open.c | if (f->f_mode) |
f_mode | 486 | fs/open.c | if (f->f_mode & FMODE_WRITE) { |
f_mode | 521 | fs/open.c | if (f->f_mode & FMODE_WRITE) |
f_mode | 567 | fs/open.c | if (filp->f_mode & FMODE_WRITE) |
f_mode | 433 | fs/pipe.c | f[0]->f_mode = 1; /* read */ |
f_mode | 436 | fs/pipe.c | f[1]->f_mode = 2; /* write */ |
f_mode | 246 | fs/proc/inode.c | if (p->files->fd[ino]->f_mode & 1) |
f_mode | 248 | 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 | 259 | fs/read_write.c | if (!(file->f_mode & 1)) |
f_mode | 272 | fs/read_write.c | if (!(file->f_mode & 2)) |
f_mode | 765 | fs/super.c | dummy.f_mode = (new_flags & MS_RDONLY) ? 1 : 3; |
f_mode | 846 | fs/super.c | filp.f_mode = 1; /* read only */ |
f_mode | 848 | fs/super.c | filp.f_mode = 3; /* read write */ |
f_mode | 852 | fs/super.c | filp.f_mode = 1; |
f_mode | 293 | include/linux/fs.h | mode_t f_mode; |
f_mode | 393 | mm/filemap.c | file.f_mode = 3; |
f_mode | 86 | mm/mmap.c | if ((prot & PROT_WRITE) && !(file->f_mode & 2)) |
f_mode | 90 | mm/mmap.c | if (!(file->f_mode & 1)) |
f_mode | 141 | mm/mmap.c | if (file->f_mode & 1) |
f_mode | 155 | mm/mmap.c | if (!(file->f_mode & 2)) |
f_mode | 1107 | mm/swap.c | filp.f_mode = 3; /* read write */ |
f_mode | 1183 | mm/swap.c | filp.f_mode = 3; /* read write */ |
f_mode | 187 | net/socket.c | file->f_mode = 3; |