tag | line | file | source code |
f | 15 | fs/file_table.c | struct file * f = file_table+0; |
f | 17 | fs/file_table.c | for (i = 0; i++ < NR_FILE; f++) |
f | 18 | fs/file_table.c | if (!f->f_count) { |
f | 19 | fs/file_table.c | memset(f,0,sizeof(*f)); |
f | 20 | fs/file_table.c | f->f_count = 1; |
f | 21 | fs/file_table.c | return f; |
f | 300 | fs/open.c | struct file * f; |
f | 309 | fs/open.c | f = get_empty_filp(); |
f | 310 | fs/open.c | if (!f) |
f | 312 | fs/open.c | current->filp[fd] = f; |
f | 315 | fs/open.c | f->f_count--; |
f | 318 | fs/open.c | f->f_mode = "\001\002\003\000"[flag & O_ACCMODE]; |
f | 319 | fs/open.c | f->f_flags = flag; |
f | 320 | fs/open.c | f->f_inode = inode; |
f | 321 | fs/open.c | f->f_pos = 0; |
f | 322 | fs/open.c | f->f_reada = 0; |
f | 323 | fs/open.c | f->f_op = NULL; |
f | 325 | fs/open.c | f->f_op = inode->i_op->default_file_ops; |
f | 326 | fs/open.c | if (f->f_op && f->f_op->open) |
f | 327 | fs/open.c | if (i = f->f_op->open(inode,f)) { |
f | 329 | fs/open.c | f->f_count--; |
f | 205 | fs/pipe.c | struct file * f[2]; |
f | 211 | fs/pipe.c | if (!(f[j] = get_empty_filp())) |
f | 214 | fs/pipe.c | f[0]->f_count--; |
f | 220 | fs/pipe.c | current->filp[ fd[j]=i ] = f[j]; |
f | 226 | fs/pipe.c | f[0]->f_count--; |
f | 227 | fs/pipe.c | f[1]->f_count--; |
f | 233 | fs/pipe.c | f[0]->f_count--; |
f | 234 | fs/pipe.c | f[1]->f_count--; |
f | 237 | fs/pipe.c | f[0]->f_inode = f[1]->f_inode = inode; |
f | 238 | fs/pipe.c | f[0]->f_pos = f[1]->f_pos = 0; |
f | 239 | fs/pipe.c | f[0]->f_flags = f[1]->f_flags = 0; |
f | 240 | fs/pipe.c | f[0]->f_op = &read_pipe_fops; |
f | 241 | fs/pipe.c | f[0]->f_mode = 1; /* read */ |
f | 242 | fs/pipe.c | f[1]->f_op = &write_pipe_fops; |
f | 243 | fs/pipe.c | f[1]->f_mode = 2; /* write */ |
f | 128 | fs/stat.c | struct file * f; |
f | 131 | fs/stat.c | if (fd >= NR_OPEN || !(f=current->filp[fd]) || !(inode=f->f_inode)) |
f | 139 | fs/stat.c | struct file * f; |
f | 142 | fs/stat.c | if (fd >= NR_OPEN || !(f=current->filp[fd]) || !(inode=f->f_inode)) |
f | 115 | include/linux/tty.h | #define _L_FLAG(tty,f) ((tty)->termios.c_lflag & f) |
f | 116 | include/linux/tty.h | #define _I_FLAG(tty,f) ((tty)->termios.c_iflag & f) |
f | 117 | include/linux/tty.h | #define _O_FLAG(tty,f) ((tty)->termios.c_oflag & f) |
f | 113 | kernel/fork.c | struct file *f; |
f | 177 | kernel/fork.c | if (f=p->filp[i]) |
f | 178 | kernel/fork.c | f->f_count++; |