#include <linux/types.h>#include <linux/kernel.h>#include <linux/sched.h>#include <linux/smp.h>#include <linux/smp_lock.h>#include <linux/ioctl.h>#include <linux/if.h>#include <linux/malloc.h>#include <linux/hdreg.h>#include <linux/kd.h>#include <linux/route.h>#include <linux/skbuff.h>#include <linux/netlink.h>#include <linux/vt.h>#include <linux/fs.h>#include <linux/file.h>#include <linux/fd.h>#include <linux/ppp_defs.h>#include <linux/if_ppp.h>#include <linux/mtio.h>#include <linux/cdrom.h>#include <linux/loop.h>#include <linux/auto_fs.h>#include <linux/tty.h>#include <linux/vt_kern.h>#include <linux/fb.h>#include <linux/ext2_fs.h>#include <linux/videodev.h>#include <linux/netdevice.h>#include <linux/smb_fs.h>#include <linux/blkdev.h>#include <linux/in6.h>#include <linux/ipv6_route.h>#include <linux/pci.h>#include <net/sock.h>#include <scsi/scsi.h>#include <scsi/scsi_ioctl.h>#include <scsi/sg.h>#include <asm/types.h>#include <asm/uaccess.h>#include <asm/fbio.h>#include <asm/kbio.h>#include <asm/vuid_event.h>#include <asm/rtc.h>#include <asm/openpromio.h>#include <asm/envctrl.h>#include <asm/audioio.h>#include <asm/ethtool.h>#include <asm/display7seg.h>#include <asm/watchdog.h>#include <linux/soundcard.h>#include <linux/random.h>Include dependency graph for ioctl32.c:

Go to the source code of this file.
Data Structures | |
| struct | timeval32 |
Defines | |
| #define | __KERNEL__ |
| #define | A(__x) ((unsigned long)(__x)) |
| #define | AA(__x) |
| #define | EXT2_IOC32_GETFLAGS _IOR('f', 1, int) |
| #define | EXT2_IOC32_SETFLAGS _IOW('f', 2, int) |
| #define | EXT2_IOC32_GETVERSION _IOR('v', 1, int) |
| #define | EXT2_IOC32_SETVERSION _IOW('v', 2, int) |
| #define | VIDIOCGTUNER32 _IOWR('v',4, struct video_tuner32) |
| #define | VIDIOCSTUNER32 _IOW('v',5, struct video_tuner32) |
| #define | VIDIOCGWIN32 _IOR('v',9, struct video_window32) |
| #define | VIDIOCSWIN32 _IOW('v',10, struct video_window32) |
| #define | VIDIOCGFBUF32 _IOR('v',11, struct video_buffer32) |
| #define | VIDIOCSFBUF32 _IOW('v',12, struct video_buffer32) |
| #define | VIDIOCGFREQ32 _IOR('v',14, u32) |
| #define | VIDIOCSFREQ32 _IOW('v',15, u32) |
| #define | IFHWADDRLEN 6 |
| #define | IFNAMSIZ 16 |
| #define | FBIOPUTCMAP32 _IOW('F', 3, struct fbcmap32) |
| #define | FBIOGETCMAP32 _IOW('F', 4, struct fbcmap32) |
| #define | FBIOSCURSOR32 _IOW('F', 24, struct fbcursor32) |
| #define | FBIOGCURSOR32 _IOW('F', 25, struct fbcursor32) |
| #define | FDSETPRM32 _IOW(2, 0x42, struct floppy_struct32) |
| #define | FDDEFPRM32 _IOW(2, 0x43, struct floppy_struct32) |
| #define | FDGETPRM32 _IOR(2, 0x04, struct floppy_struct32) |
| #define | FDSETDRVPRM32 _IOW(2, 0x90, struct floppy_drive_params32) |
| #define | FDGETDRVPRM32 _IOR(2, 0x11, struct floppy_drive_params32) |
| #define | FDGETDRVSTAT32 _IOR(2, 0x12, struct floppy_drive_struct32) |
| #define | FDPOLLDRVSTAT32 _IOR(2, 0x13, struct floppy_drive_struct32) |
| #define | FDGETFDCSTAT32 _IOR(2, 0x15, struct floppy_fdc_state32) |
| #define | FDWERRORGET32 _IOR(2, 0x17, struct floppy_write_errors32) |
| #define | NR_FD_IOCTL_TRANS (sizeof(fd_ioctl_trans_table)/sizeof(fd_ioctl_trans_table[0])) |
| #define | PPPIOCSCOMPRESS32 _IOW('t', 77, struct ppp_option_data32) |
| #define | PPPIOCGIDLE32 _IOR('t', 63, struct ppp_idle32) |
| #define | MTIOCGET32 _IOR('m', 2, struct mtget32) |
| #define | MTIOCPOS32 _IOR('m', 3, struct mtpos32) |
| #define | MTIOCGETCONFIG32 _IOR('m', 4, struct mtconfiginfo32) |
| #define | MTIOCSETCONFIG32 _IOW('m', 5, struct mtconfiginfo32) |
| #define | AUTOFS_IOC_SETTIMEOUT32 _IOWR(0x93,0x64,unsigned int) |
Functions | |
| asmlinkage int | sys_ioctl (unsigned int fd, unsigned int cmd, unsigned long arg) |
| static int | w_long (unsigned int fd, unsigned int cmd, unsigned long arg) |
| static int | rw_long (unsigned int fd, unsigned int cmd, unsigned long arg) |
| static int | do_ext2_ioctl (unsigned int fd, unsigned int cmd, unsigned long arg) |
| static int | get_video_tuner32 (struct video_tuner *kp, struct video_tuner32 *up) |
| static int | put_video_tuner32 (struct video_tuner *kp, struct video_tuner32 *up) |
| static int | get_video_buffer32 (struct video_buffer *kp, struct video_buffer32 *up) |
| static int | put_video_buffer32 (struct video_buffer *kp, struct video_buffer32 *up) |
| static void | free_kvideo_clips (struct video_window *kp) |
| static int | get_video_window32 (struct video_window *kp, struct video_window32 *up) |
| static int | put_video_window32 (struct video_window *kp, struct video_window32 *up) |
| static int | do_video_ioctl (unsigned int fd, unsigned int cmd, unsigned long arg) |
| static int | do_siocgstamp (unsigned int fd, unsigned int cmd, unsigned long arg) |
| static int | dev_ifname32 (unsigned int fd, unsigned long arg) |
| static int | dev_ifconf (unsigned int fd, unsigned long arg) |
| static int | dev_ifsioc (unsigned int fd, unsigned int cmd, unsigned long arg) |
| socket * | sockfd_lookup (int fd, int *err) |
| static int | routing_ioctl (unsigned int fd, unsigned int cmd, unsigned long arg) |
| static int | hdio_getgeo (unsigned int fd, unsigned long arg) |
| static int | fbiogetputcmap (unsigned int fd, unsigned int cmd, unsigned long arg) |
| static int | fbiogscursor (unsigned int fd, unsigned int cmd, unsigned long arg) |
| static int | fb_ioctl_trans (unsigned int fd, unsigned int cmd, unsigned long arg) |
| static int | hdio_ioctl_trans (unsigned int fd, unsigned int cmd, unsigned long arg) |
| static int | fd_ioctl_trans (unsigned int fd, unsigned int cmd, unsigned long arg) |
| static int | ppp_ioctl_trans (unsigned int fd, unsigned int cmd, unsigned long arg) |
| static int | mt_ioctl_trans (unsigned int fd, unsigned int cmd, unsigned long arg) |
| static int | cdrom_ioctl_trans (unsigned int fd, unsigned int cmd, unsigned long arg) |
| static int | loop_status (unsigned int fd, unsigned int cmd, unsigned long arg) |
| int | tty_ioctl (struct inode *inode, struct file *file, unsigned int cmd, unsigned long arg) |
| static int | vt_check (struct file *file) |
| static int | do_fontx_ioctl (struct file *file, int cmd, struct consolefontdesc32 *user_cfd) |
| static int | do_kdfontop_ioctl (struct file *file, struct console_font_op32 *fontop) |
| static int | do_unimap_ioctl (struct file *file, int cmd, struct unimapdesc32 *user_ud) |
| static int | do_smb_getmountuid (unsigned int fd, unsigned int cmd, unsigned long arg) |
| asmlinkage int | sys32_ioctl (unsigned int fd, unsigned int cmd, unsigned long arg) |
Variables | |
| struct { | |
| unsigned int cmd32 | |
| unsigned int cmd | |
| } | fd_ioctl_trans_table [] |
|
|
|
|
|
|
|
|
Value: ({ unsigned long __ret; \
__asm__ ("srl %0, 0, %0" \
: "=r" (__ret) \
: "0" (__x)); \
__ret; \
})
Definition at line 75 of file ioctl32.c. Referenced by sparc32_execve(), sys32_ipc(), sys32_mount(), sys32_pciconfig_read(), sys32_pciconfig_write(), sys32_pread(), sys32_pwrite(), and sys32_select(). |
|
|
Referenced by sys32_ioctl(). |
|
|
Definition at line 84 of file ioctl32.c. Referenced by do_ext2_ioctl(), and sys32_ioctl(). |
|
|
Definition at line 86 of file ioctl32.c. Referenced by do_ext2_ioctl(), and sys32_ioctl(). |
|
|
Definition at line 85 of file ioctl32.c. Referenced by do_ext2_ioctl(), and sys32_ioctl(). |
|
|
Definition at line 87 of file ioctl32.c. Referenced by do_ext2_ioctl(), and sys32_ioctl(). |
|
|
Definition at line 785 of file ioctl32.c. Referenced by sys32_ioctl(). |
|
|
Definition at line 734 of file ioctl32.c. Referenced by fbiogetputcmap(), and sys32_ioctl(). |
|
|
Definition at line 733 of file ioctl32.c. Referenced by fbiogetputcmap(), and sys32_ioctl(). |
|
|
Definition at line 784 of file ioctl32.c. Referenced by sys32_ioctl(). |
|
|
Definition at line 1056 of file ioctl32.c. Referenced by fd_ioctl_trans(), and sys32_ioctl(). |
|
|
Definition at line 1059 of file ioctl32.c. Referenced by fd_ioctl_trans(), and sys32_ioctl(). |
|
|
Definition at line 1060 of file ioctl32.c. Referenced by fd_ioctl_trans(), and sys32_ioctl(). |
|
|
Definition at line 1062 of file ioctl32.c. Referenced by fd_ioctl_trans(), and sys32_ioctl(). |
|
|
Definition at line 1057 of file ioctl32.c. Referenced by fd_ioctl_trans(), and sys32_ioctl(). |
|
|
Definition at line 1061 of file ioctl32.c. Referenced by fd_ioctl_trans(), and sys32_ioctl(). |
|
|
Definition at line 1058 of file ioctl32.c. Referenced by fd_ioctl_trans(), and sys32_ioctl(). |
|
|
Definition at line 1055 of file ioctl32.c. Referenced by fd_ioctl_trans(), and sys32_ioctl(). |
|
|
Definition at line 1063 of file ioctl32.c. Referenced by fd_ioctl_trans(), and sys32_ioctl(). |
|
|
|
|
|
Definition at line 407 of file ioctl32.c. Referenced by __initfunc(), br_get_ifdata(), del_rule_from_chain(), dev_ifsioc(), dev_ioctl(), devinet_ioctl(), fib_convert_rtentry(), inet_rtm_newrule(), inetdev_event(), ip_auto_config_setup(), ip_fw_domatch(), ipgre_tunnel_locate(), ipip6_tunnel_locate(), ipip_tunnel_locate(), and sock_setsockopt(). |
|
|
Definition at line 1365 of file ioctl32.c. Referenced by mt_ioctl_trans(), and sys32_ioctl(). |
|
|
Definition at line 1393 of file ioctl32.c. Referenced by mt_ioctl_trans(), and sys32_ioctl(). |
|
|
Definition at line 1370 of file ioctl32.c. Referenced by mt_ioctl_trans(), and sys32_ioctl(). |
|
|
Definition at line 1394 of file ioctl32.c. Referenced by mt_ioctl_trans(), and sys32_ioctl(). |
|
|
Definition at line 1080 of file ioctl32.c. Referenced by fd_ioctl_trans(). |
|
|
Definition at line 1291 of file ioctl32.c. Referenced by ppp_ioctl_trans(), and sys32_ioctl(). |
|
|
Definition at line 1285 of file ioctl32.c. Referenced by ppp_ioctl_trans(), and sys32_ioctl(). |
|
|
Definition at line 294 of file ioctl32.c. Referenced by do_video_ioctl(), and sys32_ioctl(). |
|
|
Definition at line 296 of file ioctl32.c. Referenced by do_video_ioctl(), and sys32_ioctl(). |
|
|
Definition at line 290 of file ioctl32.c. Referenced by do_video_ioctl(), and sys32_ioctl(). |
|
|
Definition at line 292 of file ioctl32.c. Referenced by do_video_ioctl(), and sys32_ioctl(). |
|
|
Definition at line 295 of file ioctl32.c. Referenced by do_video_ioctl(), and sys32_ioctl(). |
|
|
Definition at line 297 of file ioctl32.c. Referenced by do_video_ioctl(), and sys32_ioctl(). |
|
|
Definition at line 291 of file ioctl32.c. Referenced by do_video_ioctl(), and sys32_ioctl(). |
|
|
Definition at line 293 of file ioctl32.c. Referenced by do_video_ioctl(), and sys32_ioctl(). |
|
||||||||||||||||
|
Definition at line 1502 of file ioctl32.c. References __get_user, A, cdrom_read_audio::addr, addr, cdrom_read_audio::addr_format, cdrom_read_audio::buf, buf, cdrom_generic_command::buffer, cdrom_generic_command::buflen, cdrom_read::cdread_bufaddr, cdrom_read::cdread_buflen, cdrom_read::cdread_lba, CDROM_SEND_PACKET, CDROMREADAUDIO, CDROMREADCOOKED, CDROMREADMODE1, CDROMREADMODE2, CDROMREADRAW, cdrom_generic_command::cmd, copy_from_user, copy_to_user, count, data, EFAULT, EINVAL, ENOMEM, get_fs, KERNEL_DS, kfree(), kmalloc(), cdrom_read_audio::nframes, NULL, out, printk, set_fs, and sys_ioctl(). Referenced by sys32_ioctl(). Here is the call graph for this function: ![]() |
|
||||||||||||
|
Definition at line 451 of file ioctl32.c. References A, copy_from_user, copy_to_user, EFAULT, ENOMEM, get_fs, i, ifconf::ifc_len, ifconf32::ifc_len, ifconf32::ifcbuf, j, KERNEL_DS, kfree(), kmalloc(), NULL, set_fs, SIOCGIFCONF, and sys_ioctl(). Referenced by dev_ioctl(), and sys32_ioctl(). Here is the call graph for this function: ![]() |
|
||||||||||||
|
Definition at line 432 of file ioctl32.c. References copy_from_user, copy_to_user, dev, dev_get_by_index(), device, EFAULT, ENODEV, and strcpy. Referenced by sys32_ioctl(). Here is the call graph for this function: ![]() |
|
||||||||||||||||
|
Definition at line 519 of file ioctl32.c. References __get_user, __put_user, A, copy_from_user, copy_to_user, data, EAGAIN, EFAULT, free_page, get_fs, ifreq::ifr_ifru, KERNEL_DS, len, PPP_VERSION, set_fs, SIOCETHTOOL, SIOCGIFADDR, SIOCGIFBRDADDR, SIOCGIFDSTADDR, SIOCGIFFLAGS, SIOCGIFHWADDR, SIOCGIFINDEX, SIOCGIFMAP, SIOCGIFMEM, SIOCGIFMETRIC, SIOCGIFMTU, SIOCGIFNETMASK, SIOCGIFTXQLEN, SIOCGPPPCSTATS, SIOCGPPPSTATS, SIOCGPPPVER, SIOCSIFMAP, strlen, sys_ioctl(), and u32. Referenced by dev_ioctl(), and sys32_ioctl(). Here is the call graph for this function: ![]() |
|
||||||||||||||||
|
Definition at line 121 of file ioctl32.c. References EXT2_IOC32_GETFLAGS, EXT2_IOC32_GETVERSION, EXT2_IOC32_SETFLAGS, EXT2_IOC32_SETVERSION, EXT2_IOC_GETFLAGS, EXT2_IOC_GETVERSION, EXT2_IOC_SETFLAGS, EXT2_IOC_SETVERSION, and sys_ioctl(). Referenced by sys32_ioctl(). Here is the call graph for this function: ![]() |
|
||||||||||||||||
|
Definition at line 1672 of file ioctl32.c. References A, console_font_op::charcount, consolefontdesc::chardata, con_font_op(), copy_from_user, copy_to_user, console_font_op::data, EFAULT, EINVAL, EPERM, fg_console, console_font_op::flags, GIO_FONTX, console_font_op::height, i, KD_FONT_OP_GET, KD_FONT_OP_SET, long, console_font_op::op, PIO_FONTX, vt_check(), and console_font_op::width. Referenced by sys32_ioctl(), and vt_ioctl(). Here is the call graph for this function: ![]() |
|
||||||||||||
|
Definition at line 1727 of file ioctl32.c. References A, con_font_op(), copy_from_user, copy_to_user, data, console_font_op::data, EFAULT, EPERM, i, KD_FONT_OP_GET, long, console_font_op::op, vt_struct::vc_num, and vt_check(). Referenced by sys32_ioctl(). Here is the call graph for this function: ![]() |
|
||||||||||||||||
|
Definition at line 379 of file ioctl32.c. References __put_user, get_fs, KERNEL_DS, put_user, set_fs, sys_ioctl(), timeval32::tv_sec, timeval32::tv_usec, and up. Referenced by sys32_ioctl(). Here is the call graph for this function: ![]() |
|
||||||||||||||||
|
Definition at line 1773 of file ioctl32.c. References get_fs, KERNEL_DS, put_user, set_fs, SMB_IOC_GETMOUNTUID, and sys_ioctl(). Referenced by sys32_ioctl(). Here is the call graph for this function: ![]() |
|
||||||||||||||||
|
Definition at line 1755 of file ioctl32.c. References A, con_get_unimap(), con_set_unimap(), copy_from_user, EFAULT, unimapdesc32::entry_ct, EPERM, fg_console, GIO_UNIMAP, PIO_UNIMAP, and vt_check(). Referenced by sys32_ioctl(), and vt_ioctl(). Here is the call graph for this function: ![]() |
|
||||||||||||||||
|
Definition at line 299 of file ioctl32.c. References free_kvideo_clips(), get_fs, get_user, get_video_buffer32(), get_video_tuner32(), get_video_window32(), KERNEL_DS, out, put_user, put_video_buffer32(), put_video_tuner32(), put_video_window32(), set_fs, sys_ioctl(), u32, up, VIDIOCGFBUF, VIDIOCGFBUF32, VIDIOCGFREQ, VIDIOCGFREQ32, VIDIOCGTUNER, VIDIOCGTUNER32, VIDIOCGWIN, VIDIOCGWIN32, VIDIOCSFBUF, VIDIOCSFBUF32, VIDIOCSFREQ, VIDIOCSFREQ32, VIDIOCSTUNER, VIDIOCSTUNER32, VIDIOCSWIN, and VIDIOCSWIN32. Referenced by sys32_ioctl(). Here is the call graph for this function: ![]() |
|
||||||||||||||||
|
Definition at line 858 of file ioctl32.c. References __copy_from_user, __copy_to_user, __get_user, __put_user, A, fb_fix_screeninfo::accel, blue, count, ENOMEM, ENOSYS, FBIOGET_FSCREENINFO, FBIOGETCMAP, FBIOPUTCMAP, get_fs, green, fb_fix_screeninfo::id, KERNEL_DS, kfree(), kmalloc(), fb_fix_screeninfo::line_length, memset, fb_fix_screeninfo::mmio_len, fb_fix_screeninfo::mmio_start, out, printk, red, fb_fix_screeninfo::reserved, set_fs, fb_fix_screeninfo::smem_len, fb_fix_screeninfo::smem_start, sys_ioctl(), transp, fb_fix_screeninfo::type, fb_fix_screeninfo::type_aux, u32, fb_fix_screeninfo::visual, fb_fix_screeninfo::xpanstep, fb_fix_screeninfo::ypanstep, and fb_fix_screeninfo::ywrapstep. Referenced by sys32_ioctl(). Here is the call graph for this function: ![]() |
|
||||||||||||||||
|
Definition at line 736 of file ioctl32.c. References __get_user, A, b, fbcmap::blue, blue, copy_from_user, copy_to_user, fbcmap::count, EFAULT, EINVAL, FBIOGETCMAP32, FBIOPUTCMAP32, g, get_fs, get_user, fbcmap::green, green, fbcmap::index, KERNEL_DS, r, fbcmap::red, red, ret, set_fs, sys_ioctl(), and u32. Referenced by sys32_ioctl(). Here is the call graph for this function: ![]() |
|
||||||||||||||||
|
Definition at line 787 of file ioctl32.c. References __get_user, A, b, fbcmap::blue, blue, fbcursor::cmap, copy_from_user, fbcmap::count, EFAULT, EINVAL, FB_CUR_SETCMAP, FBIOSCURSOR, g, get_fs, fbcmap::green, green, i, fbcursor::image, fbcmap::index, KERNEL_DS, m, fbcursor::mask, mask, r, fbcmap::red, red, ret, fbcursor::set, set_fs, fbcursor::size, sys_ioctl(), u32, and uint. Referenced by sys32_ioctl(). Here is the call graph for this function: ![]() |
|
||||||||||||||||