tag | line | file | source code |
arg | 18 | fs/fcntl.c | static int dupfd(unsigned int fd, unsigned int arg) |
arg | 22 | fs/fcntl.c | if (arg >= NR_OPEN) |
arg | 24 | fs/fcntl.c | while (arg < NR_OPEN) |
arg | 25 | fs/fcntl.c | if (current->filp[arg]) |
arg | 26 | fs/fcntl.c | arg++; |
arg | 29 | fs/fcntl.c | if (arg >= NR_OPEN) |
arg | 31 | fs/fcntl.c | current->close_on_exec &= ~(1<<arg); |
arg | 32 | fs/fcntl.c | (current->filp[arg] = current->filp[fd])->f_count++; |
arg | 33 | fs/fcntl.c | return arg; |
arg | 51 | fs/fcntl.c | int sys_fcntl(unsigned int fd, unsigned int cmd, unsigned long arg) |
arg | 59 | fs/fcntl.c | return dupfd(fd,arg); |
arg | 63 | fs/fcntl.c | if (arg&1) |
arg | 72 | fs/fcntl.c | filp->f_flags |= arg & (O_APPEND | O_NONBLOCK); |
arg | 14 | fs/ioctl.c | int sys_ioctl(unsigned int fd, unsigned int cmd, unsigned long arg) |
arg | 23 | fs/ioctl.c | block = get_fs_long((long *) arg); |
arg | 25 | fs/ioctl.c | put_fs_long(block,(long *) arg); |
arg | 29 | fs/ioctl.c | return filp->f_op->ioctl(filp->f_inode, filp, cmd,arg); |
arg | 107 | fs/pipe.c | unsigned int cmd, unsigned int arg) |
arg | 111 | fs/pipe.c | verify_area((void *) arg,4); |
arg | 112 | fs/pipe.c | put_fs_long(PIPE_SIZE(*pino),(unsigned long *) arg); |
arg | 447 | kernel/blk_drv/hd.c | unsigned int cmd, unsigned int arg) |
arg | 449 | kernel/blk_drv/hd.c | struct hd_geometry *loc = (void *) arg; |
arg | 469 | kernel/blk_drv/hd.c | RO_IOCTLS(inode->i_rdev,arg); |
arg | 142 | kernel/blk_drv/scsi/scsi_ioctl.c | int scsi_ioctl (Scsi_Device *dev, int cmd, void *arg) |
arg | 151 | kernel/blk_drv/scsi/scsi_ioctl.c | return ioctl_probe(dev->host_no, arg); |
arg | 153 | kernel/blk_drv/scsi/scsi_ioctl.c | return ioctl_command((Scsi_Device *) dev, arg); |
arg | 9 | kernel/blk_drv/scsi/sd_ioctl.c | extern int scsi_ioctl (Scsi_Device *dev, int cmd, void *arg); |
arg | 11 | kernel/blk_drv/scsi/sd_ioctl.c | int sd_ioctl(struct inode * inode, struct file * file, unsigned long cmd, unsigned long arg) |
arg | 17 | kernel/blk_drv/scsi/sd_ioctl.c | return scsi_ioctl(rscsi_disks[MINOR(dev) >> 4].device, cmd, (void *) arg); |
arg | 8 | kernel/blk_drv/scsi/st_ioctl.c | extern int scsi_ioctl(Scsi_Device *dev, int cmd, void *arg); |
arg | 10 | kernel/blk_drv/scsi/st_ioctl.c | int st_ioctl(struct inode * inode, struct file * file, unsigned long cmd, unsigned long arg) |
arg | 16 | kernel/blk_drv/scsi/st_ioctl.c | return scsi_ioctl(scsi_tapes[MINOR(dev)].device, cmd, (void *) arg); |
arg | 1445 | kernel/chr_drv/console.c | int do_screendump(int arg) |
arg | 1447 | kernel/chr_drv/console.c | char *sptr, *buf = (char *)arg; |
arg | 20 | kernel/chr_drv/tty_ioctl.c | extern int do_screendump(int arg); |
arg | 22 | kernel/chr_drv/tty_ioctl.c | extern int vt_ioctl(struct tty_struct *tty, int dev, int cmd, int arg); |
arg | 83 | kernel/chr_drv/tty_ioctl.c | static int do_get_ps_info(int arg) |
arg | 90 | kernel/chr_drv/tty_ioctl.c | struct tstruct *ts = (struct tstruct *)arg; |
arg | 95 | kernel/chr_drv/tty_ioctl.c | verify_area((void *)arg, sizeof(struct tstruct)); |
arg | 230 | kernel/chr_drv/tty_ioctl.c | unsigned int cmd, unsigned int arg) |
arg | 253 | kernel/chr_drv/tty_ioctl.c | return get_termios(tty,(struct termios *) arg); |
arg | 261 | kernel/chr_drv/tty_ioctl.c | return set_termios(tty,(struct termios *) arg, dev); |
arg | 263 | kernel/chr_drv/tty_ioctl.c | return get_termio(tty,(struct termio *) arg); |
arg | 270 | kernel/chr_drv/tty_ioctl.c | return set_termio(tty,(struct termio *) arg, dev); |
arg | 275 | kernel/chr_drv/tty_ioctl.c | if (!arg) |
arg | 279 | kernel/chr_drv/tty_ioctl.c | switch (arg) { |
arg | 299 | kernel/chr_drv/tty_ioctl.c | if (arg==0) |
arg | 301 | kernel/chr_drv/tty_ioctl.c | else if (arg==1) |
arg | 303 | kernel/chr_drv/tty_ioctl.c | else if (arg==2) { |
arg | 316 | kernel/chr_drv/tty_ioctl.c | verify_area((void *) arg,4); |
arg | 317 | kernel/chr_drv/tty_ioctl.c | put_fs_long(tty->pgrp,(unsigned long *) arg); |
arg | 324 | kernel/chr_drv/tty_ioctl.c | pgrp=get_fs_long((unsigned long *) arg); |
arg | 332 | kernel/chr_drv/tty_ioctl.c | verify_area((void *) arg,4); |
arg | 333 | kernel/chr_drv/tty_ioctl.c | put_fs_long(CHARS(tty->write_q),(unsigned long *) arg); |
arg | 336 | kernel/chr_drv/tty_ioctl.c | verify_area((void *) arg,4); |
arg | 338 | kernel/chr_drv/tty_ioctl.c | put_fs_long(0, (unsigned long *) arg); |
arg | 341 | kernel/chr_drv/tty_ioctl.c | (unsigned long *) arg); |
arg | 346 | kernel/chr_drv/tty_ioctl.c | return get_window_size(tty,(struct winsize *) arg); |
arg | 349 | kernel/chr_drv/tty_ioctl.c | set_window_size(other_tty,(struct winsize *) arg); |
arg | 350 | kernel/chr_drv/tty_ioctl.c | return set_window_size(tty,(struct winsize *) arg); |
arg | 364 | kernel/chr_drv/tty_ioctl.c | switch (get_fs_byte((char *)arg)) |
arg | 367 | kernel/chr_drv/tty_ioctl.c | return do_screendump(arg); |
arg | 369 | kernel/chr_drv/tty_ioctl.c | return do_get_ps_info(arg); |
arg | 388 | kernel/chr_drv/tty_ioctl.c | verify_area((void *) arg,sizeof(struct serial_struct)); |
arg | 389 | kernel/chr_drv/tty_ioctl.c | return get_serial_info(dev-64,(struct serial_struct *) arg); |
arg | 393 | kernel/chr_drv/tty_ioctl.c | return set_serial_info(dev-64,(struct serial_struct *) arg); |
arg | 395 | kernel/chr_drv/tty_ioctl.c | if (arg) |
arg | 412 | kernel/chr_drv/tty_ioctl.c | return vt_ioctl(tty, dev, cmd, arg); |
arg | 70 | kernel/chr_drv/vt.c | vt_ioctl(struct tty_struct *tty, int dev, int cmd, int arg) |
arg | 80 | kernel/chr_drv/vt.c | return kiocsound((unsigned int)arg); |
arg | 86 | kernel/chr_drv/vt.c | verify_area((void *) arg, sizeof(unsigned char)); |
arg | 87 | kernel/chr_drv/vt.c | put_fs_byte(KB_101, (unsigned char *) arg); |
arg | 96 | kernel/chr_drv/vt.c | if (arg < GPFIRST || arg > GPLAST) |
arg | 98 | kernel/chr_drv/vt.c | return sys_ioperm(arg, 1, (cmd == KDADDIO)) ? -ENXIO : 0; |
arg | 111 | kernel/chr_drv/vt.c | switch (arg) { |
arg | 116 | kernel/chr_drv/vt.c | arg = KD_TEXT; |
arg | 122 | kernel/chr_drv/vt.c | if (vt_cons[console].vt_mode == (unsigned char) arg) |
arg | 124 | kernel/chr_drv/vt.c | vt_cons[console].vt_mode = (unsigned char) arg; |
arg | 127 | kernel/chr_drv/vt.c | if (arg == KD_TEXT) |
arg | 135 | kernel/chr_drv/vt.c | verify_area((void *) arg, sizeof(unsigned long)); |
arg | 136 | kernel/chr_drv/vt.c | put_fs_long(vt_cons[console].vt_mode, (unsigned long *) arg); |
arg | 148 | kernel/chr_drv/vt.c | if (arg == K_RAW) { |
arg | 157 | kernel/chr_drv/vt.c | else if (arg == K_XLATE) { |
arg | 168 | kernel/chr_drv/vt.c | verify_area((void *) arg, sizeof(unsigned long)); |
arg | 171 | kernel/chr_drv/vt.c | put_fs_long(ucval ? K_RAW : K_XLATE, (unsigned long *) arg); |
arg | 175 | kernel/chr_drv/vt.c | verify_area((void *) arg, sizeof(unsigned char)); |
arg | 181 | kernel/chr_drv/vt.c | (unsigned char *) arg); |
arg | 184 | kernel/chr_drv/vt.c | if (arg & ~7) |
arg | 186 | kernel/chr_drv/vt.c | ucval = (((arg & LED_SCR) ? 1 : 0) | |
arg | 187 | kernel/chr_drv/vt.c | ((arg & LED_NUM) ? 2 : 0) | |
arg | 188 | kernel/chr_drv/vt.c | ((arg & LED_CAP) ? 4 : 0)); |
arg | 14 | lib/open.c | va_list arg; |
arg | 16 | lib/open.c | va_start(arg,flag); |
arg | 21 | lib/open.c | "d" (va_arg(arg,int))); |
arg | 56 | net/kern_sock.h | int (*ioctl)(struct socket *sock, unsigned int cmd, unsigned long arg); |
arg | 51 | net/socket.c | unsigned int cmd, unsigned int arg); |
arg | 271 | net/socket.c | unsigned int arg) |
arg | 275 | net/socket.c | PRINTK("sock_ioctl: inode=0x%x cmd=0x%x arg=%d\n", inode, cmd, arg); |
arg | 290 | net/socket.c | return sock->ops->ioctl(sock, cmd, arg); |
arg | 60 | net/unix.c | unsigned long arg); |
arg | 560 | net/unix.c | unix_proto_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) |
arg | 569 | net/unix.c | verify_area((void *)arg, sizeof(unsigned long)); |
arg | 571 | net/unix.c | put_fs_long(UN_BUF_AVAIL(upd), (unsigned long *)arg); |
arg | 573 | net/unix.c | put_fs_long(1, (unsigned long *)arg); /* read EOF */ |
arg | 577 | net/unix.c | verify_area((void *)arg, sizeof(unsigned long)); |
arg | 580 | net/unix.c | (unsigned long *)arg); |
arg | 582 | net/unix.c | put_fs_long(0, (unsigned long *)arg); |