tag | line | file | source code |
files | 103 | arch/alpha/kernel/osf_sys.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
files | 165 | arch/alpha/kernel/osf_sys.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
files | 204 | arch/alpha/kernel/osf_sys.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
files | 58 | arch/i386/kernel/sys_i386.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
files | 1612 | drivers/char/tty_io.c | filp = (*p)->files->fd[i]; |
files | 57 | drivers/sound/soundcard.c | static struct fileinfo files[SND_NDEVS]; |
files | 83 | drivers/sound/soundcard.c | files[dev].flags = file->f_flags; |
files | 85 | drivers/sound/soundcard.c | return sound_read_sw (dev, &files[dev], buf, count); |
files | 95 | drivers/sound/soundcard.c | files[dev].flags = file->f_flags; |
files | 97 | drivers/sound/soundcard.c | return sound_write_sw (dev, &files[dev], buf, count); |
files | 144 | drivers/sound/soundcard.c | memcpy ((char *) &files[dev], (char *) &tmp_file, sizeof (tmp_file)); |
files | 155 | drivers/sound/soundcard.c | files[dev].flags = file->f_flags; |
files | 157 | drivers/sound/soundcard.c | sound_release_sw (dev, &files[dev]); |
files | 171 | drivers/sound/soundcard.c | files[dev].flags = file->f_flags; |
files | 196 | drivers/sound/soundcard.c | err = sound_ioctl_sw (dev, &files[dev], cmd, (caddr_t) arg); |
files | 208 | drivers/sound/soundcard.c | files[dev].flags = file->f_flags; |
files | 217 | drivers/sound/soundcard.c | return sequencer_select (dev, &files[dev], sel_type, wait); |
files | 223 | drivers/sound/soundcard.c | return MIDIbuf_select (dev, &files[dev], sel_type, wait); |
files | 231 | drivers/sound/soundcard.c | return audio_select (dev, &files[dev], sel_type, wait); |
files | 229 | fs/binfmt_elf.c | file = current->files->fd[elf_exec_fileno]; |
files | 427 | fs/binfmt_elf.c | file = current->files->fd[elf_exec_fileno]; |
files | 734 | fs/binfmt_elf.c | file = current->files->fd[fd]; |
files | 251 | fs/buffer.c | if (fd>=NR_OPEN || !(file=current->files->fd[fd]) || !(inode=file->f_inode)) |
files | 115 | fs/exec.c | fpp = current->files->fd; |
files | 290 | fs/exec.c | file = current->files->fd[fd]; |
files | 595 | fs/exec.c | if (FD_ISSET(i,¤t->files->close_on_exec)) |
files | 597 | fs/exec.c | FD_ZERO(¤t->files->close_on_exec); |
files | 878 | fs/exec.c | file = current->files->fd[fd]; |
files | 953 | fs/exec.c | file = current->files->fd[fd]; |
files | 22 | fs/fcntl.c | if (fd >= NR_OPEN || !current->files->fd[fd]) |
files | 27 | fs/fcntl.c | if (current->files->fd[arg]) |
files | 33 | fs/fcntl.c | FD_CLR(arg, ¤t->files->close_on_exec); |
files | 34 | fs/fcntl.c | (current->files->fd[arg] = current->files->fd[fd])->f_count++; |
files | 40 | fs/fcntl.c | if (oldfd >= NR_OPEN || !current->files->fd[oldfd]) |
files | 72 | fs/fcntl.c | if (fd >= NR_OPEN || !(filp = current->files->fd[fd])) |
files | 78 | fs/fcntl.c | return FD_ISSET(fd, ¤t->files->close_on_exec); |
files | 81 | fs/fcntl.c | FD_SET(fd, ¤t->files->close_on_exec); |
files | 83 | fs/fcntl.c | FD_CLR(fd, ¤t->files->close_on_exec); |
files | 63 | fs/ioctl.c | if (fd >= NR_OPEN || !(filp = current->files->fd[fd])) |
files | 67 | fs/ioctl.c | FD_SET(fd, ¤t->files->close_on_exec); |
files | 71 | fs/ioctl.c | FD_CLR(fd, ¤t->files->close_on_exec); |
files | 103 | fs/locks.c | if ((fd >= NR_OPEN) || !(filp = current->files->fd[fd])) |
files | 125 | fs/locks.c | if ((fd >= NR_OPEN) || !(filp = current->files->fd[fd])) |
files | 172 | fs/locks.c | if ((fd >= NR_OPEN) || !(filp = current->files->fd[fd])) |
files | 93 | fs/nfs/inode.c | if (fd >= NR_OPEN || !(filp = current->files->fd[fd])) { |
files | 54 | fs/open.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
files | 119 | fs/open.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
files | 277 | fs/open.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
files | 318 | fs/open.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
files | 369 | fs/open.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
files | 507 | fs/open.c | if (!current->files->fd[fd]) { |
files | 508 | fs/open.c | current->files->fd[fd] = f; |
files | 509 | fs/open.c | FD_CLR(fd,¤t->files->close_on_exec); |
files | 574 | fs/open.c | FD_CLR(fd, ¤t->files->close_on_exec); |
files | 575 | fs/open.c | if (!(filp = current->files->fd[fd])) |
files | 577 | fs/open.c | current->files->fd[fd] = NULL; |
files | 400 | fs/pipe.c | if (!current->files->fd[i]) { |
files | 401 | fs/pipe.c | current->files->fd[ fd[j]=i ] = f[j]; |
files | 409 | fs/pipe.c | current->files->fd[fd[0]] = NULL; |
files | 107 | fs/proc/fd.c | if (fd >= NR_OPEN || !p->files->fd[fd] || !p->files->fd[fd]->f_inode) |
files | 153 | fs/proc/fd.c | if (!p->files) |
files | 155 | fs/proc/fd.c | if (!p->files->fd[fd] || !p->files->fd[fd]->f_inode) |
files | 238 | fs/proc/inode.c | if (ino >= NR_OPEN || !p->files->fd[ino]) |
files | 243 | fs/proc/inode.c | if (p->files->fd[ino]->f_mode & 1) |
files | 245 | fs/proc/inode.c | if (p->files->fd[ino]->f_mode & 2) |
files | 119 | fs/proc/link.c | if (!p->files) |
files | 122 | fs/proc/link.c | if (ino < NR_OPEN && p->files->fd[ino]) { |
files | 123 | fs/proc/link.c | new_inode = p->files->fd[ino]->f_inode; |
files | 23 | fs/read_write.c | if (fd >= NR_OPEN || !(file=current->files->fd[fd]) || !(file->f_inode)) |
files | 63 | fs/read_write.c | if (fd >= NR_OPEN || !(file=current->files->fd[fd]) || !(file->f_inode)) |
files | 109 | fs/read_write.c | if (fd>=NR_OPEN || !(file=current->files->fd[fd]) || !(inode=file->f_inode)) |
files | 130 | fs/read_write.c | if (fd>=NR_OPEN || !(file=current->files->fd[fd]) || !(inode=file->f_inode)) |
files | 255 | fs/read_write.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd]) || !(inode = file->f_inode)) |
files | 267 | fs/read_write.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd]) || !(inode = file->f_inode)) |
files | 62 | fs/readdir.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
files | 126 | fs/readdir.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
files | 105 | fs/select.c | if (!current->files->fd[i]) |
files | 107 | fs/select.c | if (!current->files->fd[i]->f_inode) |
files | 126 | fs/select.c | if (FD_ISSET(i,in) && check(SEL_IN,wait,current->files->fd[i])) { |
files | 131 | fs/select.c | if (FD_ISSET(i,out) && check(SEL_OUT,wait,current->files->fd[i])) { |
files | 136 | fs/select.c | if (FD_ISSET(i,ex) && check(SEL_EX,wait,current->files->fd[i])) { |
files | 194 | fs/smbfs/inode.c | if (fd >= NR_OPEN || !(filp = current->files->fd[fd])) { |
files | 170 | fs/stat.c | if (fd >= NR_OPEN || !(f=current->files->fd[fd]) || !(inode=f->f_inode)) |
files | 185 | fs/stat.c | if (fd >= NR_OPEN || !(f=current->files->fd[fd]) || !(inode=f->f_inode)) |
files | 216 | include/linux/sched.h | struct files_struct *files; |
files | 363 | kernel/exit.c | struct files_struct * files = tsk->files; |
files | 365 | kernel/exit.c | if (files) { |
files | 366 | kernel/exit.c | tsk->files = NULL; |
files | 367 | kernel/exit.c | if (!--files->count) { |
files | 370 | kernel/exit.c | struct file * filp = files->fd[i]; |
files | 373 | kernel/exit.c | files->fd[i] = NULL; |
files | 376 | kernel/exit.c | kfree(files); |
files | 160 | kernel/fork.c | current->files->count++; |
files | 163 | kernel/fork.c | tsk->files = kmalloc(sizeof(*tsk->files), GFP_KERNEL); |
files | 164 | kernel/fork.c | if (!tsk->files) |
files | 166 | kernel/fork.c | tsk->files->count = 1; |
files | 167 | kernel/fork.c | memcpy(&tsk->files->close_on_exec, ¤t->files->close_on_exec, |
files | 168 | kernel/fork.c | sizeof(tsk->files->close_on_exec)); |
files | 170 | kernel/fork.c | struct file * f = current->files->fd[i]; |
files | 173 | kernel/fork.c | tsk->files->fd[i] = f; |
files | 176 | net/socket.c | if (!current->files->fd[fd]) |
files | 184 | net/socket.c | FD_CLR(fd, ¤t->files->close_on_exec); |
files | 185 | net/socket.c | current->files->fd[fd] = file; |
files | 219 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || !(file = current->files->fd[fd])) |
files | 647 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || current->files->fd[fd] == NULL) |
files | 674 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || current->files->fd[fd] == NULL) |
files | 707 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
files | 769 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || (file=current->files->fd[fd]) == NULL) |
files | 819 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || current->files->fd[fd] == NULL) |
files | 844 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || current->files->fd[fd] == NULL) |
files | 870 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
files | 906 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
files | 944 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
files | 984 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
files | 1025 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
files | 1043 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
files | 1063 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
files | 1085 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
files | 1122 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |