tag | line | file | source code |
files | 104 | arch/alpha/kernel/osf_sys.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
files | 166 | arch/alpha/kernel/osf_sys.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
files | 205 | 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 | 45 | arch/mips/kernel/syscall.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
files | 27 | arch/sparc/kernel/sunos_ioctl.c | if (fd >= NR_OPEN || !(filp = current->files->fd [fd])) |
files | 77 | arch/sparc/kernel/sys_sunos.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
files | 379 | arch/sparc/kernel/sys_sunos.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
files | 609 | arch/sparc/kernel/sys_sunos.c | file = current->files->fd [fd]; |
files | 1645 | drivers/char/tty_io.c | filp = (*p)->files->fd[i]; |
files | 53 | drivers/sound/soundcard.c | static struct fileinfo files[SND_NDEVS]; |
files | 79 | drivers/sound/soundcard.c | files[dev].flags = file_get_flags (file); |
files | 81 | drivers/sound/soundcard.c | return sound_read_sw (dev, &files[dev], buf, count); |
files | 91 | drivers/sound/soundcard.c | files[dev].flags = file_get_flags (file); |
files | 93 | drivers/sound/soundcard.c | return sound_write_sw (dev, &files[dev], buf, count); |
files | 140 | drivers/sound/soundcard.c | memcpy ((char *) &files[dev], (char *) &tmp_file, sizeof (tmp_file)); |
files | 151 | drivers/sound/soundcard.c | files[dev].flags = file_get_flags (file); |
files | 153 | drivers/sound/soundcard.c | sound_release_sw (dev, &files[dev]); |
files | 167 | drivers/sound/soundcard.c | files[dev].flags = file_get_flags (file); |
files | 192 | drivers/sound/soundcard.c | err = sound_ioctl_sw (dev, &files[dev], cmd, (caddr_t) arg); |
files | 204 | drivers/sound/soundcard.c | files[dev].flags = file_get_flags (file); |
files | 213 | drivers/sound/soundcard.c | return sequencer_select (dev, &files[dev], sel_type, wait); |
files | 219 | drivers/sound/soundcard.c | return MIDIbuf_select (dev, &files[dev], sel_type, wait); |
files | 227 | drivers/sound/soundcard.c | return audio_select (dev, &files[dev], sel_type, wait); |
files | 248 | drivers/sound/soundcard.c | files[dev].flags = file_get_flags (file); |
files | 226 | fs/binfmt_elf.c | file = current->files->fd[elf_exec_fileno]; |
files | 417 | fs/binfmt_elf.c | file = current->files->fd[elf_exec_fileno]; |
files | 727 | fs/binfmt_elf.c | file = current->files->fd[fd]; |
files | 260 | fs/buffer.c | if (fd>=NR_OPEN || !(file=current->files->fd[fd]) || !(inode=file->f_inode)) |
files | 274 | fs/buffer.c | if (fd>=NR_OPEN || !(file=current->files->fd[fd]) || !(inode=file->f_inode)) |
files | 120 | fs/exec.c | fpp = current->files->fd; |
files | 295 | fs/exec.c | file = current->files->fd[fd]; |
files | 604 | fs/exec.c | if (FD_ISSET(i,¤t->files->close_on_exec)) |
files | 606 | fs/exec.c | FD_ZERO(¤t->files->close_on_exec); |
files | 916 | fs/exec.c | file = current->files->fd[fd]; |
files | 991 | 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 | 62 | fs/fcntl.c | if (fd >= NR_OPEN || !(filp = current->files->fd[fd])) |
files | 68 | fs/fcntl.c | return FD_ISSET(fd, ¤t->files->close_on_exec); |
files | 71 | fs/fcntl.c | FD_SET(fd, ¤t->files->close_on_exec); |
files | 73 | 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 | 203 | fs/ncpfs/inode.c | || ((ncp_filp = current->files->fd[data->ncp_fd]) == NULL) |
files | 212 | fs/ncpfs/inode.c | || ((wdog_filp = current->files->fd[data->wdog_fd]) == NULL) |
files | 93 | fs/nfs/inode.c | if (fd >= NR_OPEN || !(filp = current->files->fd[fd])) { |
files | 701 | fs/nfs/nfsroot.c | filp = current->files->fd[nfs_data.fd]; |
files | 704 | fs/nfs/nfsroot.c | current->files->fd[nfs_data.fd] = &nfs_file; |
files | 727 | fs/nfs/nfsroot.c | current->files->fd[nfs_data.fd] = NULL; |
files | 728 | fs/nfs/nfsroot.c | if (current->files->count > 0) |
files | 729 | fs/nfs/nfsroot.c | current->files->count--; |
files | 54 | fs/open.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
files | 123 | fs/open.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
files | 267 | fs/open.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
files | 308 | fs/open.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
files | 358 | fs/open.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd])) |
files | 511 | fs/open.c | if (!current->files->fd[fd]) { |
files | 512 | fs/open.c | current->files->fd[fd] = f; |
files | 513 | fs/open.c | FD_CLR(fd,¤t->files->close_on_exec); |
files | 579 | fs/open.c | FD_CLR(fd, ¤t->files->close_on_exec); |
files | 580 | fs/open.c | if (!(filp = current->files->fd[fd])) |
files | 582 | fs/open.c | current->files->fd[fd] = NULL; |
files | 417 | fs/pipe.c | if (!current->files->fd[i]) { |
files | 418 | fs/pipe.c | current->files->fd[ fd[j]=i ] = f[j]; |
files | 426 | fs/pipe.c | current->files->fd[fd[0]] = NULL; |
files | 109 | fs/proc/fd.c | if (fd >= NR_OPEN || !p->files->fd[fd] || !p->files->fd[fd]->f_inode) |
files | 155 | fs/proc/fd.c | if (!p->files) |
files | 157 | 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 | 121 | fs/proc/link.c | if (!p->files) |
files | 124 | fs/proc/link.c | if (ino < NR_OPEN && p->files->fd[ino]) { |
files | 125 | 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 | 257 | fs/read_write.c | if (fd >= NR_OPEN || !(file = current->files->fd[fd]) || !(inode = file->f_inode)) |
files | 270 | 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 | 231 | include/linux/sched.h | struct files_struct *files; |
files | 364 | kernel/exit.c | struct files_struct * files = tsk->files; |
files | 366 | kernel/exit.c | if (files) { |
files | 367 | kernel/exit.c | tsk->files = NULL; |
files | 368 | kernel/exit.c | if (!--files->count) { |
files | 371 | kernel/exit.c | struct file * filp = files->fd[i]; |
files | 374 | kernel/exit.c | files->fd[i] = NULL; |
files | 377 | kernel/exit.c | kfree(files); |
files | 162 | kernel/fork.c | current->files->count++; |
files | 165 | kernel/fork.c | tsk->files = kmalloc(sizeof(*tsk->files), GFP_KERNEL); |
files | 166 | kernel/fork.c | if (!tsk->files) |
files | 168 | kernel/fork.c | tsk->files->count = 1; |
files | 169 | kernel/fork.c | memcpy(&tsk->files->close_on_exec, ¤t->files->close_on_exec, |
files | 170 | kernel/fork.c | sizeof(tsk->files->close_on_exec)); |
files | 172 | kernel/fork.c | struct file * f = current->files->fd[i]; |
files | 175 | 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 | 675 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || current->files->fd[fd] == NULL) |
files | 709 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
files | 771 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || (file=current->files->fd[fd]) == NULL) |
files | 821 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || current->files->fd[fd] == NULL) |
files | 846 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || current->files->fd[fd] == NULL) |
files | 872 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
files | 908 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
files | 946 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
files | 986 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
files | 1027 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
files | 1045 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
files | 1065 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
files | 1087 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |
files | 1124 | net/socket.c | if (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL)) |