taglinefilesource code
fd1453drivers/char/tty_io.cfilp = (*p)->files->fd[i];
fd355drivers/sound/configure.cint             fd;
fd360drivers/sound/configure.cif ((fd = open (path, 0)) > 0)
fd368drivers/sound/configure.ccount = read (fd, &c, 1);
fd379drivers/sound/configure.cclose (fd);
fd236fs/buffer.casmlinkage int sys_fsync(unsigned int fd)
fd241fs/buffer.cif (fd>=NR_OPEN || !(file=current->files->fd[fd]) || !(inode=file->f_inode))
fd56fs/exec.cstatic int load_aout_library(int fd);
fd101fs/exec.cint error, fd;
fd109fs/exec.cfd = 0;
fd110fs/exec.cfpp = current->files->fd;
fd114fs/exec.cif (++fd > NR_OPEN)
fd134fs/exec.creturn fd;
fd283fs/exec.cint fd, retval;
fd287fs/exec.cfd = sys_open(library, 0, 0);
fd288fs/exec.cif (fd < 0)
fd289fs/exec.creturn fd;
fd290fs/exec.cfile = current->files->fd[fd];
fd297fs/exec.cretval = fn(fd);
fd302fs/exec.csys_close(fd);
fd783fs/exec.cint fd, error;
fd829fs/exec.cfd = open_inode(bprm->inode, O_RDONLY);
fd831fs/exec.cif (fd < 0)
fd832fs/exec.creturn fd;
fd833fs/exec.cfile = current->files->fd[fd];
fd835fs/exec.csys_close(fd);
fd851fs/exec.csys_close(fd);
fd861fs/exec.csys_close(fd);
fd895fs/exec.cstatic int load_aout_library(int fd)
fd905fs/exec.cfile = current->files->fd[fd];
fd20fs/fcntl.cstatic int dupfd(unsigned int fd, unsigned int arg)
fd22fs/fcntl.cif (fd >= NR_OPEN || !current->files->fd[fd])
fd27fs/fcntl.cif (current->files->fd[arg])
fd34fs/fcntl.c(current->files->fd[arg] = current->files->fd[fd])->f_count++;
fd40fs/fcntl.cif (oldfd >= NR_OPEN || !current->files->fd[oldfd])
fd66fs/fcntl.casmlinkage int sys_fcntl(unsigned int fd, unsigned int cmd, unsigned long arg)
fd70fs/fcntl.cif (fd >= NR_OPEN || !(filp = current->files->fd[fd]))
fd74fs/fcntl.creturn dupfd(fd,arg);
fd76fs/fcntl.creturn FD_ISSET(fd, &current->files->close_on_exec);
fd79fs/fcntl.cFD_SET(fd, &current->files->close_on_exec);
fd81fs/fcntl.cFD_CLR(fd, &current->files->close_on_exec);
fd103fs/fcntl.creturn fcntl_getlk(fd, (struct flock *) arg);
fd105fs/fcntl.creturn fcntl_setlk(fd, cmd, (struct flock *) arg);
fd107fs/fcntl.creturn fcntl_setlk(fd, cmd, (struct flock *) arg);
fd57fs/ioctl.casmlinkage int sys_ioctl(unsigned int fd, unsigned int cmd, unsigned long arg)
fd62fs/ioctl.cif (fd >= NR_OPEN || !(filp = current->files->fd[fd]))
fd66fs/ioctl.cFD_SET(fd, &current->files->close_on_exec);
fd70fs/ioctl.cFD_CLR(fd, &current->files->close_on_exec);
fd26fs/locks.cunsigned int fd);
fd29fs/locks.cstatic int lock_it(struct file *filp, struct file_lock *caller, unsigned int fd);
fd31fs/locks.cunsigned int fd);
fd54fs/locks.cint fcntl_getlk(unsigned int fd, struct flock *l)
fd61fs/locks.cif (fd >= NR_OPEN || !(filp = current->files->fd[fd]))
fd69fs/locks.cif (!copy_flock(filp, &file_lock, &flock, fd))
fd94fs/locks.cint fcntl_setlk(unsigned int fd, unsigned int cmd, struct flock *l)
fd105fs/locks.cif (fd >= NR_OPEN || !(filp = current->files->fd[fd]))
fd111fs/locks.cif (!copy_flock(filp, &file_lock, &flock, fd))
fd166fs/locks.creturn lock_it(filp, &file_lock, fd);
fd174fs/locks.cunsigned int fd)
fd182fs/locks.cwhile ((fl = *before) && (task != fl->fl_owner || fd != fl->fl_fd))
fd187fs/locks.cwhile ((fl = *before) && task == fl->fl_owner && fd == fl->fl_fd)
fd197fs/locks.cunsigned int fd)
fd220fs/locks.cfl->fl_fd = fd;
fd270fs/locks.cstatic int lock_it(struct file *filp, struct file_lock *caller, unsigned int fd)
fd394fs/locks.cif (! (caller = alloc_lock(before, caller, fd)))
fd404fs/locks.cif (! (left = alloc_lock(before, right, fd))) {
fd423fs/locks.cunsigned int     fd)
fd442fs/locks.ctmp->fl_fd = fd;    /* FIXME: needed? */
fd21fs/nfs/inode.cextern int close_fp(struct file *filp, unsigned int fd);
fd66fs/nfs/inode.cunsigned int fd;
fd75fs/nfs/inode.cfd = data->fd;
fd80fs/nfs/inode.cif (fd >= NR_OPEN || !(filp = current->files->fd[fd])) {
fd22fs/open.cextern void fcntl_remove_locks(struct task_struct *, struct file *, unsigned int fd);
fd49fs/open.casmlinkage int sys_fstatfs(unsigned int fd, struct statfs * buf)
fd58fs/open.cif (fd >= NR_OPEN || !(file = current->files->fd[fd]))
fd98fs/open.casmlinkage int sys_ftruncate(unsigned int fd, unsigned int length)
fd103fs/open.cif (fd >= NR_OPEN || !(file = current->files->fd[fd]))
fd208fs/open.casmlinkage int sys_fchdir(unsigned int fd)
fd213fs/open.cif (fd >= NR_OPEN || !(file = current->files->fd[fd]))
fd248fs/open.casmlinkage int sys_fchmod(unsigned int fd, mode_t mode)
fd253fs/open.cif (fd >= NR_OPEN || !(file = current->files->fd[fd]))
fd299fs/open.casmlinkage int sys_fchown(unsigned int fd, uid_t user, gid_t group)
fd307fs/open.cif (fd >= NR_OPEN || !(file = current->files->fd[fd]))
fd413fs/open.cint flag,error,fd;
fd415fs/open.cfor(fd=0 ; fd<NR_OPEN ; fd++)
fd416fs/open.cif (!current->files->fd[fd])
fd418fs/open.cif (fd>=NR_OPEN)
fd420fs/open.cFD_CLR(fd,&current->files->close_on_exec);
fd424fs/open.ccurrent->files->fd[fd] = f;
fd433fs/open.ccurrent->files->fd[fd]=NULL;
fd449fs/open.ccurrent->files->fd[fd]=NULL;
fd454fs/open.creturn (fd);
fd475fs/open.cint close_fp(struct file *filp, unsigned int fd)
fd485fs/open.cfcntl_remove_locks(current, filp, fd);
fd498fs/open.casmlinkage int sys_close(unsigned int fd)
fd502fs/open.cif (fd >= NR_OPEN)
fd504fs/open.cFD_CLR(fd, &current->files->close_on_exec);
fd505fs/open.cif (!(filp = current->files->fd[fd]))
fd507fs/open.ccurrent->files->fd[fd] = NULL;
fd508fs/open.creturn (close_fp (filp, fd));
fd382fs/pipe.cint fd[2];
fd397fs/pipe.cif (!current->files->fd[i]) {
fd398fs/pipe.ccurrent->files->fd[ fd[j]=i ] = f[j];
fd402fs/pipe.ccurrent->files->fd[fd[0]]=NULL;
fd409fs/pipe.ccurrent->files->fd[fd[0]] = NULL;
fd410fs/pipe.ccurrent->files->fd[fd[1]] = NULL;
fd423fs/pipe.cput_fs_long(fd[0],0+fildes);
fd424fs/pipe.cput_fs_long(fd[1],1+fildes);
fd56fs/proc/fd.cunsigned int ino, pid, fd, c;
fd87fs/proc/fd.cfd = 0;
fd92fs/proc/fd.cfd = 0xfffff;
fd95fs/proc/fd.cfd *= 10;
fd96fs/proc/fd.cfd += c;
fd97fs/proc/fd.cif (fd & 0xffff0000) {
fd98fs/proc/fd.cfd = 0xfffff;
fd108fs/proc/fd.cif (fd >= NR_OPEN || !p->files->fd[fd] || !p->files->fd[fd]->f_inode)
fd111fs/proc/fd.cino = (pid << 16) + 0x100 + fd;
fd122fs/proc/fd.cunsigned int fd, pid, ino;
fd134fs/proc/fd.cfd = filp->f_pos;
fd136fs/proc/fd.cif (fd < 2) {
fd137fs/proc/fd.ci = j = fd+1;
fd138fs/proc/fd.cif (!fd)
fd139fs/proc/fd.cfd = inode->i_ino;
fd141fs/proc/fd.cfd = (inode->i_ino & 0xffff0000) | 2;
fd142fs/proc/fd.cput_fs_long(fd, &dirent->d_ino);
fd149fs/proc/fd.cfd -= 2;
fd155fs/proc/fd.cif (fd >= NR_OPEN)
fd158fs/proc/fd.cif (!p->files->fd[fd] || !p->files->fd[fd]->f_inode)
fd163fs/proc/fd.cwhile (fd >= j) {
fd168fs/proc/fd.cino = (pid << 16) + 0x100 + fd;
fd174fs/proc/fd.cput_fs_byte('0'+(fd % 10), i+dirent->d_name);
fd175fs/proc/fd.cfd /= 10;
fd174fs/proc/inode.cif (ino >= NR_OPEN || !p->files->fd[ino])
fd89fs/proc/link.cif (ino < NR_OPEN && p->files->fd[ino])
fd90fs/proc/link.cinode = p->files->fd[ino]->f_inode;
fd19fs/read_write.casmlinkage int sys_readdir(unsigned int fd, struct dirent * dirent, unsigned int count)
fd25fs/read_write.cif (fd >= NR_OPEN || !(file = current->files->fd[fd]) ||
fd37fs/read_write.casmlinkage int sys_lseek(unsigned int fd, off_t offset, unsigned int origin)
fd42fs/read_write.cif (fd >= NR_OPEN || !(file=current->files->fd[fd]) || !(file->f_inode))
fd70fs/read_write.casmlinkage int sys_llseek(unsigned int fd, unsigned long offset_high,
fd79fs/read_write.cif (fd >= NR_OPEN || !(file=current->files->fd[fd]) || !(file->f_inode))
fd108fs/read_write.casmlinkage int sys_read(unsigned int fd,char * buf,unsigned int count)
fd114fs/read_write.cif (fd>=NR_OPEN || !(file=current->files->fd[fd]) || !(inode=file->f_inode))
fd128fs/read_write.casmlinkage int sys_write(unsigned int fd,char * buf,unsigned int count)
fd135fs/read_write.cif (fd>=NR_OPEN || !(file=current->files->fd[fd]) || !(inode=file->f_inode))
fd104fs/select.cif (!current->files->fd[i])
fd106fs/select.cif (!current->files->fd[i]->f_inode)
fd125fs/select.cif (FD_ISSET(i,in) && check(SEL_IN,wait,current->files->fd[i])) {
fd130fs/select.cif (FD_ISSET(i,out) && check(SEL_OUT,wait,current->files->fd[i])) {
fd135fs/select.cif (FD_ISSET(i,ex) && check(SEL_EX,wait,current->files->fd[i])) {
fd155fs/stat.casmlinkage int sys_fstat(unsigned int fd, struct old_stat * statbuf)
fd164fs/stat.cif (fd >= NR_OPEN || !(f=current->files->fd[fd]) || !(inode=f->f_inode))
fd170fs/stat.casmlinkage int sys_newfstat(unsigned int fd, struct new_stat * statbuf)
fd179fs/stat.cif (fd >= NR_OPEN || !(f=current->files->fd[fd]) || !(inode=f->f_inode))
fd34ibcs/binfmt_coff.casmlinkage int sys_close (unsigned fd);
fd125ibcs/binfmt_coff.cint fd = -1;    /* Open file descriptor                */
fd379ibcs/binfmt_coff.cfd = open_inode (bprm->inode, O_RDONLY);
fd380ibcs/binfmt_coff.cif (fd < 0) {
fd382ibcs/binfmt_coff.cprintk ("can not open inode, result = %d\n", fd);
fd384ibcs/binfmt_coff.cstatus = fd;
fd387ibcs/binfmt_coff.cfp = current->files->fd[fd];
fd390ibcs/binfmt_coff.cfd = -1;    /* Invalidate the open file descriptor */
fd568ibcs/binfmt_coff.cif (fd >= 0)
fd569ibcs/binfmt_coff.csys_close (fd);    /* Close unused code file      */
fd737ibcs/binfmt_coff.cload_coff_library (int fd)
fd759ibcs/binfmt_coff.cfile           = current->files->fd[fd];
fd29ibcs/binfmt_elf.casmlinkage int sys_close(unsigned fd);
fd173ibcs/binfmt_elf.cfile = current->files->fd[elf_exec_fileno];
fd330ibcs/binfmt_elf.cfile = current->files->fd[elf_exec_fileno];
fd566ibcs/binfmt_elf.cstatic int load_elf_library(int fd){
fd579ibcs/binfmt_elf.cfile = current->files->fd[fd];
fd585ibcs/binfmt_elf.csys_close(fd);
fd638ibcs/binfmt_elf.csys_close(fd);
fd35include/linux/binfmts.hint (*load_shlib)(int fd);
fd24include/linux/nfs_mount.hint fd;        /* 1 */
fd196include/linux/sched.hstruct file * fd[NR_OPEN];
fd17include/linux/time.h#define FD_SET(fd,fdsetp)  __FD_SET(fd,fdsetp)
fd18include/linux/time.h#define FD_CLR(fd,fdsetp)  __FD_CLR(fd,fdsetp)
fd19include/linux/time.h#define FD_ISSET(fd,fdsetp)  __FD_ISSET(fd,fdsetp)
fd100include/linux/types.h#define __FD_SET(fd,fdsetp) \
fd102include/linux/types.h"=m" (*(fd_set *) (fdsetp)):"r" ((int) (fd)))
fd105include/linux/types.h#define __FD_CLR(fd,fdsetp) \
fd107include/linux/types.h"=m" (*(fd_set *) (fdsetp)):"r" ((int) (fd)))
fd110include/linux/types.h#define __FD_ISSET(fd,fdsetp) (__extension__ ({ \
fd113include/linux/types.h:"=q" (__result) :"r" ((int) (fd)), \
fd53init/main.cstatic inline _syscall3(int,write,int,fd,const char *,buf,off_t,count)
fd54init/main.cstatic inline _syscall1(int,dup,int,fd)
fd57init/main.cstatic inline _syscall1(int,close,int,fd)
fd393kernel/exit.cif (current->files->fd[i])
fd123kernel/fork.cif ((f = p->files->fd[i]) != NULL)
fd124kernel/fork.cp->files->fd[i] = copy_fd(f);
fd127kernel/fork.cif ((f = p->files->fd[i]) != NULL)
fd10lib/close.c_syscall1(int,close,int,fd)
fd10lib/dup.c_syscall1(int,dup,int,fd)
fd11lib/write.c_syscall3(int,write,int,fd,const char *,buf,off_t,count)
fd180mm/mmap.cunsigned long fd = get_fs_long(buffer+4);
fd181mm/mmap.cif (fd >= NR_OPEN || !(file = current->files->fd[fd]))
fd149net/socket.cint fd;
fd160net/socket.cfor (fd = 0; fd < NR_OPEN; ++fd)
fd161net/socket.cif (!current->files->fd[fd]) 
fd163net/socket.cif (fd == NR_OPEN) 
fd169net/socket.cFD_CLR(fd, &current->files->close_on_exec);
fd170net/socket.ccurrent->files->fd[fd] = file;
fd179net/socket.creturn(fd);
fd189net/socket.cstatic inline void toss_fd(int fd)
fd191net/socket.csys_close(fd);    /* the count protects us from iput */
fd221net/socket.cstatic inline struct socket *sockfd_lookup(int fd, struct file **pfile)
fd225net/socket.cif (fd < 0 || fd >= NR_OPEN || !(file = current->files->fd[fd])) 
fd569net/socket.cint i, fd;
fd619net/socket.cif ((fd = get_fd(SOCK_INODE(sock))) < 0) 
fd625net/socket.creturn(fd);
fd693net/socket.cstatic int sock_bind(int fd, struct sockaddr *umyaddr, int addrlen)
fd700net/socket.cif (fd < 0 || fd >= NR_OPEN || current->files->fd[fd] == NULL)
fd703net/socket.cif (!(sock = sockfd_lookup(fd, NULL))) 
fd723net/socket.cstatic int sock_listen(int fd, int backlog)
fd727net/socket.cif (fd < 0 || fd >= NR_OPEN || current->files->fd[fd] == NULL)
fd729net/socket.cif (!(sock = sockfd_lookup(fd, NULL))) 
fd752net/socket.cstatic int sock_accept(int fd, struct sockaddr *upeer_sockaddr, int *upeer_addrlen)
fd760net/socket.cif (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL))
fd762net/socket.cif (!(sock = sockfd_lookup(fd, &file))) 
fd793net/socket.cif ((fd = get_fd(SOCK_INODE(newsock))) < 0) 
fd804net/socket.creturn(fd);
fd813net/socket.cstatic int sock_connect(int fd, struct sockaddr *uservaddr, int addrlen)
fd821net/socket.cif (fd < 0 || fd >= NR_OPEN || (file=current->files->fd[fd]) == NULL)
fd823net/socket.cif (!(sock = sockfd_lookup(fd, &file)))
fd865net/socket.cstatic int sock_getsockname(int fd, struct sockaddr *usockaddr, int *usockaddr_len)
fd872net/socket.cif (fd < 0 || fd >= NR_OPEN || current->files->fd[fd] == NULL)
fd874net/socket.cif (!(sock = sockfd_lookup(fd, NULL)))
fd890net/socket.cstatic int sock_getpeername(int fd, struct sockaddr *usockaddr, int *usockaddr_len)
fd897net/socket.cif (fd < 0 || fd >= NR_OPEN || current->files->fd[fd] == NULL)
fd899net/socket.cif (!(sock = sockfd_lookup(fd, NULL)))
fd915net/socket.cstatic int sock_send(int fd, void * buff, int len, unsigned flags)
fd921net/socket.cif (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL))
fd923net/socket.cif (!(sock = sockfd_lookup(fd, NULL))) 
fd940net/socket.cstatic int sock_sendto(int fd, void * buff, int len, unsigned flags,
fd948net/socket.cif (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL))
fd950net/socket.cif (!(sock = sockfd_lookup(fd, NULL)))
fd975net/socket.cstatic int sock_recv(int fd, void * buff, int len, unsigned flags)
fd981net/socket.cif (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL))
fd984net/socket.cif (!(sock = sockfd_lookup(fd, NULL))) 
fd1004net/socket.cstatic int sock_recvfrom(int fd, void * buff, int len, unsigned flags,
fd1012net/socket.cif (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL))
fd1014net/socket.cif (!(sock = sockfd_lookup(fd, NULL))) 
fd1041net/socket.cstatic int sock_setsockopt(int fd, int level, int optname, char *optval, int optlen)
fd1046net/socket.cif (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL))
fd1048net/socket.cif (!(sock = sockfd_lookup(fd, NULL))) 
fd1059net/socket.cstatic int sock_getsockopt(int fd, int level, int optname, char *optval, int *optlen)
fd1064net/socket.cif (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL))
fd1066net/socket.cif (!(sock = sockfd_lookup(fd, NULL)))
fd1079net/socket.cstatic int sock_shutdown(int fd, int how)
fd1084net/socket.cif (fd < 0 || fd >= NR_OPEN || ((file = current->files->fd[fd]) == NULL))
fd1086net/socket.cif (!(sock = sockfd_lookup(fd, NULL)))