PATH:
usr
/
include
/
linux
/* * ioctl interface for the scsi media changer driver */ /* changer element types */ #define CHET_MT 0 /* media transport element (robot) */ #define CHET_ST 1 /* storage element (media slots) */ #define CHET_IE 2 /* import/export element */ #define CHET_DT 3 /* data transfer element (tape/cdrom/whatever) */ #define CHET_V1 4 /* vendor specific #1 */ #define CHET_V2 5 /* vendor specific #2 */ #define CHET_V3 6 /* vendor specific #3 */ #define CHET_V4 7 /* vendor specific #4 */ /* * CHIOGPARAMS * query changer properties * * CHIOVGPARAMS * query vendor-specific element types * * accessing elements works by specifing type and unit of the element. * for example, storage elements are addressed with type = CHET_ST and * unit = 0 .. cp_nslots-1 * */ struct changer_params { int cp_curpicker; /* current transport element */ int cp_npickers; /* number of transport elements (CHET_MT) */ int cp_nslots; /* number of storage elements (CHET_ST) */ int cp_nportals; /* number of import/export elements (CHET_IE) */ int cp_ndrives; /* number of data transfer elements (CHET_DT) */ }; struct changer_vendor_params { int cvp_n1; /* number of vendor specific elems (CHET_V1) */ char cvp_label1[16]; int cvp_n2; /* number of vendor specific elems (CHET_V2) */ char cvp_label2[16]; int cvp_n3; /* number of vendor specific elems (CHET_V3) */ char cvp_label3[16]; int cvp_n4; /* number of vendor specific elems (CHET_V4) */ char cvp_label4[16]; int reserved[8]; }; /* * CHIOMOVE * move a medium from one element to another */ struct changer_move { int cm_fromtype; /* type/unit of source element */ int cm_fromunit; int cm_totype; /* type/unit of destination element */ int cm_tounit; int cm_flags; }; #define CM_INVERT 1 /* flag: rotate media (for double-sided like MOD) */ /* * CHIOEXCHANGE * move one medium from element #1 to element #2, * and another one from element #2 to element #3. * element #1 and #3 are allowed to be identical. */ struct changer_exchange { int ce_srctype; /* type/unit of element #1 */ int ce_srcunit; int ce_fdsttype; /* type/unit of element #2 */ int ce_fdstunit; int ce_sdsttype; /* type/unit of element #3 */ int ce_sdstunit; int ce_flags; }; #define CE_INVERT1 1 #define CE_INVERT2 2 /* * CHIOPOSITION * move the transport element (robot arm) to a specific element. */ struct changer_position { int cp_type; int cp_unit; int cp_flags; }; #define CP_INVERT 1 /* * CHIOGSTATUS * get element status for all elements of a specific type */ struct changer_element_status { int ces_type; unsigned char *ces_data; }; #define CESTATUS_FULL 0x01 /* full */ #define CESTATUS_IMPEXP 0x02 /* media was imported (inserted by sysop) */ #define CESTATUS_EXCEPT 0x04 /* error condition */ #define CESTATUS_ACCESS 0x08 /* access allowed */ #define CESTATUS_EXENAB 0x10 /* element can export media */ #define CESTATUS_INENAB 0x20 /* element can import media */ /* * CHIOGELEM * get more detailed status information for a single element */ struct changer_get_element { int cge_type; /* type/unit */ int cge_unit; int cge_status; /* status */ int cge_errno; /* errno */ int cge_srctype; /* source element of the last move/exchange */ int cge_srcunit; int cge_id; /* scsi id (for data transfer elements) */ int cge_lun; /* scsi lun (for data transfer elements) */ char cge_pvoltag[36]; /* primary volume tag */ char cge_avoltag[36]; /* alternate volume tag */ int cge_flags; }; /* flags */ #define CGE_ERRNO 0x01 /* errno available */ #define CGE_INVERT 0x02 /* media inverted */ #define CGE_SRC 0x04 /* media src available */ #define CGE_IDLUN 0x08 /* ID+LUN available */ #define CGE_PVOLTAG 0x10 /* primary volume tag available */ #define CGE_AVOLTAG 0x20 /* alternate volume tag available */ /* * CHIOSVOLTAG * set volume tag */ struct changer_set_voltag { int csv_type; /* type/unit */ int csv_unit; char csv_voltag[36]; /* volume tag */ int csv_flags; }; #define CSV_PVOLTAG 0x01 /* primary volume tag */ #define CSV_AVOLTAG 0x02 /* alternate volume tag */ #define CSV_CLEARTAG 0x04 /* clear volume tag */ /* ioctls */ #define CHIOMOVE _IOW('c', 1,struct changer_move) #define CHIOEXCHANGE _IOW('c', 2,struct changer_exchange) #define CHIOPOSITION _IOW('c', 3,struct changer_position) #define CHIOGPICKER _IOR('c', 4,int) /* not impl. */ #define CHIOSPICKER _IOW('c', 5,int) /* not impl. */ #define CHIOGPARAMS _IOR('c', 6,struct changer_params) #define CHIOGSTATUS _IOW('c', 8,struct changer_element_status) #define CHIOGELEM _IOW('c',16,struct changer_get_element) #define CHIOINITELEM _IO('c',17) #define CHIOSVOLTAG _IOW('c',18,struct changer_set_voltag) #define CHIOGVPARAMS _IOR('c',19,struct changer_vendor_params) /* ---------------------------------------------------------------------- */ /* * Local variables: * c-basic-offset: 8 * End: */
[+]
..
[-] sysinfo.h
[edit]
[-] mroute.h
[edit]
[-] if_eql.h
[edit]
[-] serial_core.h
[edit]
[-] membarrier.h
[edit]
[-] sched.h
[edit]
[-] mei.h
[edit]
[-] bfs_fs.h
[edit]
[-] atmlec.h
[edit]
[-] v4l2-mediabus.h
[edit]
[-] videodev2.h
[edit]
[-] screen_info.h
[edit]
[-] if_slip.h
[edit]
[-] uuid.h
[edit]
[-] version.h
[edit]
[-] ipv6_route.h
[edit]
[-] ixjuser.h
[edit]
[-] pkt_cls.h
[edit]
[-] atm_he.h
[edit]
[-] raw.h
[edit]
[-] msdos_fs.h
[edit]
[-] mman.h
[edit]
[-] aio_abi.h
[edit]
[-] reboot.h
[edit]
[-] snmp.h
[edit]
[-] atm_eni.h
[edit]
[-] netfilter_bridge.h
[edit]
[-] patchkey.h
[edit]
[-] string.h
[edit]
[-] socket.h
[edit]
[+]
spi
[-] auxvec.h
[edit]
[-] sockios.h
[edit]
[-] keyboard.h
[edit]
[-] scc.h
[edit]
[-] dn.h
[edit]
[-] unistd.h
[edit]
[-] oom.h
[edit]
[-] pkt_sched.h
[edit]
[-] if_phonet.h
[edit]
[+]
byteorder
[-] if_arcnet.h
[edit]
[+]
caif
[-] fd.h
[edit]
[-] radeonfb.h
[edit]
[-] qnx4_fs.h
[edit]
[-] nfs2.h
[edit]
[-] magic.h
[edit]
[-] target_core_user.h
[edit]
[-] atm_zatm.h
[edit]
[-] pci.h
[edit]
[-] nfsacl.h
[edit]
[-] if_packet.h
[edit]
[-] arcfb.h
[edit]
[-] nfs_mount.h
[edit]
[-] fib_rules.h
[edit]
[-] atmsap.h
[edit]
[+]
dvb
[-] cciss_defs.h
[edit]
[+]
netfilter_ipv6
[-] atmdev.h
[edit]
[-] kexec.h
[edit]
[-] ipc.h
[edit]
[-] sock_diag.h
[edit]
[+]
wimax
[-] serial.h
[edit]
[-] if_link.h
[edit]
[-] route.h
[edit]
[-] if_bonding.h
[edit]
[-] auto_fs.h
[edit]
[-] pg.h
[edit]
[-] l2tp.h
[edit]
[-] perf_event.h
[edit]
[-] tcp_metrics.h
[edit]
[-] v4l2-controls.h
[edit]
[-] personality.h
[edit]
[-] dcbnl.h
[edit]
[-] netfilter_arp.h
[edit]
[-] toshiba.h
[edit]
[-] memfd.h
[edit]
[-] resource.h
[edit]
[-] tipc.h
[edit]
[-] virtio_vsock.h
[edit]
[-] atm_tcp.h
[edit]
[-] cn_proc.h
[edit]
[-] utime.h
[edit]
[-] nbd.h
[edit]
[-] netfilter_ipv6.h
[edit]
[-] meye.h
[edit]
[-] gfs2_ondisk.h
[edit]
[-] som.h
[edit]
[-] ncp_mount.h
[edit]
[-] coda.h
[edit]
[-] hw_breakpoint.h
[edit]
[-] shm.h
[edit]
[-] wanrouter.h
[edit]
[-] kernel-page-flags.h
[edit]
[-] auto_fs4.h
[edit]
[-] ppp_defs.h
[edit]
[-] tty.h
[edit]
[-] sysctl.h
[edit]
[-] joystick.h
[edit]
[-] ip.h
[edit]
[-] jffs2.h
[edit]
[-] nfs3.h
[edit]
[-] if_infiniband.h
[edit]
[-] agpgart.h
[edit]
[+]
raid
[-] blkpg.h
[edit]
[-] virtio_ids.h
[edit]
[-] udp.h
[edit]
[-] swab.h
[edit]
[-] romfs_fs.h
[edit]
[-] fb.h
[edit]
[-] kvm_para.h
[edit]
[-] btrfs.h
[edit]
[-] efs_fs_sb.h
[edit]
[-] xfrm.h
[edit]
[-] iso_fs.h
[edit]
[-] serial_reg.h
[edit]
[-] virtio_gpu.h
[edit]
[-] sound.h
[edit]
[-] errno.h
[edit]
[-] kernelcapi.h
[edit]
[-] net_tstamp.h
[edit]
[-] isdnif.h
[edit]
[-] hiddev.h
[edit]
[-] ncp_fs.h
[edit]
[-] hdlc.h
[edit]
[-] fcntl.h
[edit]
[-] if.h
[edit]
[-] minix_fs.h
[edit]
[-] hdreg.h
[edit]
[-] virtio_9p.h
[edit]
[-] coff.h
[edit]
[-] elf-em.h
[edit]
[-] mqueue.h
[edit]
[+]
tc_ematch
[-] gameport.h
[edit]
[-] if_ether.h
[edit]
[-] if_addrlabel.h
[edit]
[-] ife.h
[edit]
[-] isdn_divertif.h
[edit]
[-] rds.h
[edit]
[-] fdreg.h
[edit]
[-] pmu.h
[edit]
[-] cuda.h
[edit]
[-] stat.h
[edit]
[-] virtio_net.h
[edit]
[-] posix_types.h
[edit]
[-] cyclades.h
[edit]
[-] baycom.h
[edit]
[-] ipv6.h
[edit]
[-] net_dropmon.h
[edit]
[-] ipmi_msgdefs.h
[edit]
[+]
netfilter_arp
[-] v4l2-subdev.h
[edit]
[-] vsockmon.h
[edit]
[-] neighbour.h
[edit]
[-] sctp.h
[edit]
[-] atmppp.h
[edit]
[-] usbdevice_fs.h
[edit]
[-] dm-ioctl.h
[edit]
[-] netconf.h
[edit]
[-] v4l2-dv-timings.h
[edit]
[-] chio.h
[edit]
[-] msg.h
[edit]
[+]
netfilter_ipv4
[-] netlink.h
[edit]
[-] genetlink.h
[edit]
[-] cgroupstats.h
[edit]
[-] i8k.h
[edit]
[-] cciss_ioctl.h
[edit]
[-] major.h
[edit]
[-] nfs_fs.h
[edit]
[-] rfkill.h
[edit]
[-] atm.h
[edit]
[-] fuse.h
[edit]
[-] fsl_hypervisor.h
[edit]
[-] atalk.h
[edit]
[-] ivtv.h
[edit]
[-] nfs4_mount.h
[edit]
[-] pps.h
[edit]
[-] nubus.h
[edit]
[-] ethtool.h
[edit]
[-] hpet.h
[edit]
[-] atmmpc.h
[edit]
[-] fou.h
[edit]
[-] dccp.h
[edit]
[-] if_pppox.h
[edit]
[-] media.h
[edit]
[-] dm-log-userspace.h
[edit]
[-] ndctl.h
[edit]
[-] wmi.h
[edit]
[-] timex.h
[edit]
[-] mii.h
[edit]
[-] kd.h
[edit]
[-] if_pppol2tp.h
[edit]
[-] uinput.h
[edit]
[-] time.h
[edit]
[-] fadvise.h
[edit]
[-] phonet.h
[edit]
[-] dlm_device.h
[edit]
[-] bpf_perf_event.h
[edit]
[-] quota.h
[edit]
[-] ppdev.h
[edit]
[-] ivtvfb.h
[edit]
[-] if_plip.h
[edit]
[-] net_namespace.h
[edit]
[-] ipmi.h
[edit]
[-] vhost.h
[edit]
[-] v4l2-common.h
[edit]
[-] ultrasound.h
[edit]
[-] lp.h
[edit]
[-] wireless.h
[edit]
[-] keyctl.h
[edit]
[-] atm_idt77105.h
[edit]
[-] bt-bmc.h
[edit]
[-] netrom.h
[edit]
[-] rtc.h
[edit]
[-] types.h
[edit]
[-] qnxtypes.h
[edit]
[-] affs_hardblocks.h
[edit]
[-] if_ppp.h
[edit]
[-] prctl.h
[edit]
[-] firewire-cdev.h
[edit]
[-] sdla.h
[edit]
[-] atmbr2684.h
[edit]
[-] falloc.h
[edit]
[-] connector.h
[edit]
[+]
mmc
[-] rtnetlink.h
[edit]
[-] tty_flags.h
[edit]
[-] bpf.h
[edit]
[-] watchdog.h
[edit]
[-] bsg.h
[edit]
[-] kernel.h
[edit]
[-] reiserfs_fs.h
[edit]
[+]
can
[-] selinux_netlink.h
[edit]
[-] hdlcdrv.h
[edit]
[-] filter.h
[edit]
[-] hidraw.h
[edit]
[-] icmp.h
[edit]
[-] uio.h
[edit]
[-] if_ltalk.h
[edit]
[-] ppp-ioctl.h
[edit]
[-] vtpm_proxy.h
[edit]
[-] elfcore.h
[edit]
[-] limits.h
[edit]
[-] if_tunnel.h
[edit]
[-] if_fddi.h
[edit]
[-] uvcvideo.h
[edit]
[-] ioctl.h
[edit]
[-] capi.h
[edit]
[-] nvme_ioctl.h
[edit]
[-] dlm.h
[edit]
[-] tiocl.h
[edit]
[-] inotify.h
[edit]
[-] poll.h
[edit]
[-] rose.h
[edit]
[-] if_hippi.h
[edit]
[-] matroxfb.h
[edit]
[-] i2o-dev.h
[edit]
[-] tipc_config.h
[edit]
[-] ipsec.h
[edit]
[-] dlm_netlink.h
[edit]
[-] serio.h
[edit]
[-] cdrom.h
[edit]
[-] fanotify.h
[edit]
[-] virtio_blk.h
[edit]
[-] atmioc.h
[edit]
[-] securebits.h
[edit]
[-] bpf_common.h
[edit]
[-] if_team.h
[edit]
[-] omapfb.h
[edit]
[-] pktcdvd.h
[edit]
[-] phantom.h
[edit]
[-] atmapi.h
[edit]
[-] hyperv.h
[edit]
[-] stddef.h
[edit]
[-] vt.h
[edit]
[-] cycx_cfm.h
[edit]
[-] parport.h
[edit]
[-] ptrace.h
[edit]
[-] nfs.h
[edit]
[-] if_bridge.h
[edit]
[+]
netfilter_bridge
[-] unix_diag.h
[edit]
[-] times.h
[edit]
[-] n_r3964.h
[edit]
[-] nl80211.h
[edit]
[-] kvm.h
[edit]
[-] virtio_ring.h
[edit]
[-] bpqether.h
[edit]
[-] ip6_tunnel.h
[edit]
[-] sem.h
[edit]
[-] llc.h
[edit]
[-] omap3isp.h
[edit]
[-] virtio_types.h
[edit]
[-] xattr.h
[edit]
[-] netfilter.h
[edit]
[-] edd.h
[edit]
[-] inet_diag.h
[edit]
[-] vfio.h
[edit]
[-] un.h
[edit]
[-] termios.h
[edit]
[+]
usb
[-] firewire-constants.h
[edit]
[-] nfs4.h
[edit]
[-] atmclip.h
[edit]
[-] devlink.h
[edit]
[-] ip_vs.h
[edit]
[-] nfc.h
[edit]
[-] flat.h
[edit]
[-] elf.h
[edit]
[-] if_x25.h
[edit]
[-] mdio.h
[edit]
[-] isdn_ppp.h
[edit]
[+]
isdn
[-] cm4000_cs.h
[edit]
[-] nvram.h
[edit]
[-] param.h
[edit]
[-] dlm_plock.h
[edit]
[-] virtio_balloon.h
[edit]
[-] telephony.h
[edit]
[-] dlmconstants.h
[edit]
[-] tcp.h
[edit]
[-] futex.h
[edit]
[-] virtio_scsi.h
[edit]
[-] net.h
[edit]
[-] sonypi.h
[edit]
[-] wait.h
[edit]
[-] apm_bios.h
[edit]
[-] if_macsec.h
[edit]
[+]
hsi
[-] gigaset_dev.h
[edit]
[-] capability.h
[edit]
[-] errqueue.h
[edit]
[+]
netfilter
[-] a.out.h
[edit]
[-] utsname.h
[edit]
[-] gen_stats.h
[edit]
[-] kdev_t.h
[edit]
[-] if_vlan.h
[edit]
[-] lwtunnel.h
[edit]
[-] uhid.h
[edit]
[-] i2c-dev.h
[edit]
[-] wimax.h
[edit]
[-] openvswitch.h
[edit]
[-] virtio_input.h
[edit]
[-] sonet.h
[edit]
[+]
hdlc
[-] ppp-comp.h
[edit]
[-] veth.h
[edit]
[-] atmsvc.h
[edit]
[-] netlink_diag.h
[edit]
[-] hid.h
[edit]
[-] const.h
[edit]
[-] psample.h
[edit]
[-] vm_sockets.h
[edit]
[-] i2c.h
[edit]
[-] synclink.h
[edit]
[-] if_arp.h
[edit]
[-] pfkeyv2.h
[edit]
[-] virtio_config.h
[edit]
[-] if_fc.h
[edit]
[-] eventpoll.h
[edit]
[-] binfmts.h
[edit]
[-] soundcard.h
[edit]
[-] in6.h
[edit]
[-] b1lli.h
[edit]
[-] suspend_ioctls.h
[edit]
[-] loop.h
[edit]
[-] seccomp.h
[edit]
[-] blktrace_api.h
[edit]
[-] adfs_fs.h
[edit]
[-] netdevice.h
[edit]
[-] virtio_console.h
[edit]
[-] dqblk_xfs.h
[edit]
[-] netfilter_decnet.h
[edit]
[-] mmtimer.h
[edit]
[-] can.h
[edit]
[-] adb.h
[edit]
[-] acct.h
[edit]
[-] ax25.h
[edit]
[-] coda_psdev.h
[edit]
[-] elf-fdpic.h
[edit]
[-] virtio_rng.h
[edit]
[-] signal.h
[edit]
[-] libc-compat.h
[edit]
[-] taskstats.h
[edit]
[-] ncp_no.h
[edit]
[-] ipx.h
[edit]
[-] userfaultfd.h
[edit]
[-] mempolicy.h
[edit]
[-] icmpv6.h
[edit]
[-] atmarp.h
[edit]
[-] if_frad.h
[edit]
[-] signalfd.h
[edit]
[-] irda.h
[edit]
[-] fiemap.h
[edit]
[-] virtio_pci.h
[edit]
[-] if_cablemodem.h
[edit]
[-] in_route.h
[edit]
[-] mpls.h
[edit]
[-] input.h
[edit]
[-] nfs_idmap.h
[edit]
[-] cramfs_fs.h
[edit]
[-] ptp_clock.h
[edit]
[-] audit.h
[edit]
[-] if_tun.h
[edit]
[-] igmp.h
[edit]
[-] if_alg.h
[edit]
[-] random.h
[edit]
[-] netfilter_ipv4.h
[edit]
[-] atm_nicstar.h
[edit]
[-] packet_diag.h
[edit]
[-] x25.h
[edit]
[+]
tc_act
[-] in.h
[edit]
[-] irqnr.h
[edit]
[-] ncp.h
[edit]
[-] reiserfs_xattr.h
[edit]
[+]
iio
[-] fs.h
[edit]
[-] map_to_7segment.h
[edit]
[+]
sunrpc
[-] if_addr.h
[edit]
[-] mtio.h
[edit]
[+]
nfsd
[-] hysdn_if.h
[edit]
[-] pci_regs.h
[edit]
[-] mroute6.h
[edit]
[-] isdn.h
[edit]
[-] udf_fs_i.h
[edit]