1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-28 11:57:28 +00:00
freebsd/sys/sys
Kenneth D. Merry 21b6ee96fc Update chio(1) and ch(4) to support reporting element designators.
This allows mapping a tape drive in a changer (as reported by
'chio status') to a sa(4) driver instance by comparing the
serial numbers.

The designators can be ASCII (which is printed out directly), binary
(which is printed in hex format) or UTF-8, which is printed in either
native UTF-8 format if the terminal can support it, or in %XX notation
for non-ASCII characters.  Thanks to Hiroki Sato <hrs@> for the
explaining UTF-8 printing and example UTF-8 printing code.

chio.h:		Modify the changer_element_status structure to add new
		fields and definitions from the SMC3r16 spec.

		Rename the original CHIOGSTATUS ioctl to OCHIOGTATUS and
		define a new CHIOGSTATUS ioctl.

		Clean up some tab/space issues.

chio.c: 	For the 'status' subcommand, print the designator field
		if it is supplied by a device.

scsi_ch.h:	Add new flags for DVCID and CURDATA to the READ
		ELEMENT STATUS command structure.

		Add a read_element_status_device_id structure
		for the data fields in the new standard. Add new
		unions, dt_or_obsolete and voltage_devid, to hold
		and address data from either SCSI-2 or newer devices.

scsi_ch.c:	Implement support for fetching device IDs with READ
		ELEMENT STATUS data.

		Add new arguments to scsi_read_element_status() to
		allow the user to request the DVCID and CURDATA bits.
		This isn't compiled into libcam (it's only an internal
		kernel interface), so we don't need any special
		handling for the API change.

		If the user issues the new CHIOGSTATUS ioctl, copy all of
		the available element status data out.  If he issues the
		OCHIOGSTATUS ioctl, we don't copy the new fields in the
		structure.

		Fix a bug in chopen() that would result in the peripheral
		never getting unheld if chgetparams() failed.

Sponsored by:	Spectra Logic
Submitted by:	Po-Li Soong
MFC After:	1 week
2013-04-19 20:03:51 +00:00
..
_bus_dma.h
_callout.h - Make callout(9) tickless, relying on eventtimers(4) as backend for 2013-03-04 11:09:56 +00:00
_cpuset.h Post r222812 KTR_CPUMASK started being initialized only as a tunable 2012-08-30 21:22:47 +00:00
_ffcounter.h
_iovec.h
_kstack_cache.h
_lock.h
_lockmgr.h
_mutex.h Tweak comments. 2012-11-11 23:25:47 +00:00
_null.h
_pthreadtypes.h
_rmlock.h Remove namespace pollution in _rmlock.h by defining rm_queue structure 2012-09-18 00:43:15 +00:00
_rwlock.h Tweak comments. 2012-11-11 23:25:47 +00:00
_semaphore.h
_sigset.h
_sockaddr_storage.h
_stack.h
_stdint.h
_sx.h
_task.h
_termios.h
_timespec.h
_timeval.h
_types.h
_umtx.h
aac_ioctl.h
acct.h
acl.h
agpio.h
aio.h
alq.h
apm.h
assym.h
ata.h Adds security options to camcontrol this includes the ability to secure erase 2013-04-04 23:19:51 +00:00
bio.h Be more explicit about what each bio_cmd & bio_flags value means. 2013-03-23 16:55:07 +00:00
bitstring.h
blist.h
buf_ring.h This fixes a out-of-order problem with several 2013-02-07 15:20:54 +00:00
buf.h Do not remap usermode pages into KVA for physio. 2013-03-19 14:43:57 +00:00
bufobj.h Rearrange the struct bufobj and struct vnode layouts to reduce 2013-01-14 05:46:49 +00:00
bus_dma.h Add bus_dmamap_load_bio for non-CAM disk drivers that wish to enable 2013-03-29 16:26:25 +00:00
bus.h Remove a comment about devices being able to specify multiple interrupt 2013-04-04 15:40:19 +00:00
busdma_bufalloc.h Create an architecture-agnostic buffer pool manager that uses uma(9) to 2012-12-20 00:34:54 +00:00
callout.h Move the auto-sizing of the callout array from init_param2() to 2013-03-08 10:14:58 +00:00
capability.h Implement chflagsat(2) system call, similar to fchmodat(2), but operates on 2013-03-21 22:59:01 +00:00
cdefs.h Add an unified macro to deny ability from the compiler to reorder 2012-10-09 14:32:30 +00:00
cdio.h
cdrio.h
cfictl.h
chio.h Update chio(1) and ch(4) to support reporting element designators. 2013-04-19 20:03:51 +00:00
clock.h
condvar.h MFcalloutng: 2013-03-04 12:20:48 +00:00
conf.h Add dev_strategy_csw() function, which is similar to dev_strategy() 2013-03-27 11:34:27 +00:00
cons.h
consio.h
copyright.h Happy New Year 2013! 2012-12-31 11:22:55 +00:00
counter.h Merge from projects/counters: counter(9). 2013-04-08 19:40:53 +00:00
cpu.h
cpuctl.h
cpuset.h
ctype.h
dataacq.h
devicestat.h
digiio.h
dir.h
dirent.h
disk.h
disklabel.h
diskmbr.h Support the FAT16 partition type in gpart(8) 2013-03-07 22:32:41 +00:00
diskpc98.h
dkstat.h
domain.h Implement SOCK_CLOEXEC, SOCK_NONBLOCK and MSG_CMSG_CLOEXEC. 2013-03-19 20:58:17 +00:00
dtrace_bsd.h
dvdio.h
elf32.h
elf64.h
elf_common.h Add a new set of notes to a process core dump to store procstat data. 2013-04-16 19:19:14 +00:00
elf_generic.h
elf.h
endian.h
errno.h
eui64.h
event.h
eventhandler.h Base the mbuf related limits on the available physical memory or 2012-11-27 21:19:58 +00:00
eventvar.h
exec.h
extattr.h Fix return type of extattr_set_* and fix rmextattr(8) utility. 2013-04-02 05:30:41 +00:00
fail.h
fbio.h
fcntl.h Add F_DUP2FD_CLOEXEC. Apparently Solaris 11 already did this. 2012-07-27 10:41:10 +00:00
fdcio.h
file.h Merge Capsicum overhaul: 2013-03-02 00:53:12 +00:00
filedesc.h Add fdallocn function and use it when passing fds over unix socket. 2013-04-14 17:08:34 +00:00
filio.h
firmware.h
fnv_hash.h Add an #include guard to the sys/fnv_hash.h. 2012-12-14 12:37:35 +00:00
gmon.h
gpio.h
gpt.h
hash.h - Move jenkins.h to jenkins_hash.c 2012-09-04 12:07:33 +00:00
hhook.h
iconv.h
imgact_aout.h
imgact_elf.h
imgact.h
inflate.h
interrupt.h
ioccom.h
ioctl_compat.h
ioctl.h
ipc.h Fix build if COMPAT_43 is defined without one of 2012-10-22 02:59:55 +00:00
ipmi.h
jail.h
joystick.h
kbio.h
kdb.h Add constant missed in r244099 2012-12-10 23:12:51 +00:00
kenv.h
kernel.h Mark 'ticks', 'time_second', and 'time_uptime' as volatile to prevent the 2013-01-28 19:38:13 +00:00
kerneldump.h
khelp.h
kobj.h
ksem.h
ksyms.h
kthread.h
ktr.h - Add new machine parsable KTR macros for timing events. 2012-12-19 20:10:00 +00:00
ktrace.h
libkern.h Attempt to mitigate poor initialization of arc4 by one-shot 2013-04-19 00:30:52 +00:00
limits.h
link_aout.h
link_elf.h
linker_set.h
linker.h
lock_profile.h
lock.h Remove unused/obsolete macros. 2012-11-13 18:24:47 +00:00
lockf.h
lockmgr.h
lockstat.h
loginclass.h
mac.h
malloc.h
mbpool.h
mbuf.h Add MEXT_ALIGN() macro, similar to M_ALIGN() and MH_ALIGN(), but for 2013-03-17 07:39:45 +00:00
mchain.h
md4.h
md5.h
mdioctl.h
memdesc.h Reform the busdma API so that new types may be added without modifying 2013-02-12 16:57:20 +00:00
memrange.h
mman.h
module_khelp.h
module.h
mount.h A flag for the filesystem to indicate to the upper levels that it accepts 2013-03-19 14:33:01 +00:00
mouse.h Add preliminary support for IBM/Lenovo TrackPoint. 2013-03-18 23:22:47 +00:00
mpt_ioctl.h
mqueue.h
msg.h
msgbuf.h
mtio.h
mutex.h MFcalloutng: 2013-03-04 12:48:41 +00:00
namei.h Merge Capsicum overhaul: 2013-03-02 00:53:12 +00:00
nlist_aout.h
osd.h
param.h Partially revert r195702. Deferring stops is now implemented via a set of 2013-03-18 17:23:58 +00:00
pciio.h
pcpu.h Merge from projects/counters: 2013-04-08 19:19:10 +00:00
pioctl.h
pipe.h I am comparing current pipe code with the one in 8.3-STABLE r236165, 2012-07-31 05:48:35 +00:00
pmc.h Update hwpmc to support Haswell class processors. 2013-03-28 19:15:54 +00:00
pmckern.h Add a generic way to call per event allocate / release function. 2013-03-05 10:18:48 +00:00
pmclog.h
poll.h
posix4.h
power.h
priority.h
priv.h
proc.h Similarly to proc_getargv() and proc_getenvv(), export proc_getauxv() 2013-04-14 20:03:48 +00:00
procdesc.h
procfs.h
protosw.h - Implement two new system calls: 2013-03-02 21:11:30 +00:00
ptio.h
ptrace.h
queue.h Fixes to QUEUE_MACRO_DEBUG support: 2013-02-06 07:27:25 +00:00
racct.h Add CPU percentage limit enforcement to RCTL. The resouce name is "pcpu". 2012-10-26 16:01:08 +00:00
random.h
rangelock.h
rctl.h Add CPU percentage limit enforcement to RCTL. The resouce name is "pcpu". 2012-10-26 16:01:08 +00:00
reboot.h
refcount.h Add assertion for refcount overflow. 2012-07-27 09:16:48 +00:00
regression.h
resource.h Add the wait6(2) system call. It takes POSIX waitid()-like process 2012-11-13 12:52:31 +00:00
resourcevar.h
rman.h
rmlock.h Replace the TDP_NOSLEEPING flag with a counter so that the 2013-03-01 22:03:31 +00:00
rtprio.h
runq.h
rwlock.h MFcalloutng: 2013-03-04 12:48:41 +00:00
sbuf.h Add sbuf_start_section() and sbuf_end_section() functions, which can 2013-04-11 19:49:18 +00:00
sched.h Compiler have a precise knowledge of the content of sched_pin() and 2012-10-29 01:35:17 +00:00
sdt.h
select.h
selinfo.h
sem.h
sema.h
serial.h
sf_buf.h
sglist.h
shm.h
sigio.h
signal.h
signalvar.h Partially revert r195702. Deferring stops is now implemented via a set of 2013-03-18 17:23:58 +00:00
sleepqueue.h Partially revert r195702. Deferring stops is now implemented via a set of 2013-03-18 17:23:58 +00:00
slicer.h
smp.h - Implement run-time expansion of the KTR buffer via sysctl. 2012-11-15 00:51:57 +00:00
snoop.h
sockbuf.h
socket.h Improve namespacing in <sys/socket.h>: 2013-03-30 13:30:27 +00:00
socketvar.h Fix build. 2013-04-10 08:09:25 +00:00
sockio.h
sockopt.h
sockstate.h
soundcard.h
stack.h
stat.h Implement chflagsat(2) system call, similar to fchmodat(2), but operates on 2013-03-21 22:59:01 +00:00
statvfs.h
stddef.h
stdint.h
sun_disklabel.h
sx.h MFcalloutng: 2013-03-04 12:48:41 +00:00
syscall.h Regen. 2013-04-02 05:30:52 +00:00
syscall.mk Regen. 2013-04-02 05:30:52 +00:00
syscallsubr.h Rename do_pipe() to kern_pipe2() and declare it properly. 2013-03-31 17:42:54 +00:00
sysctl.h Merge from projects/counters: counter(9). 2013-04-08 19:40:53 +00:00
sysent.h
syslimits.h
syslog.h Add static/const keywords to the arrays. 2013-04-09 16:16:34 +00:00
sysproto.h Regen. 2013-04-02 05:30:52 +00:00
systm.h Move CRITICAL_ASSERT() macro to systm.h, where the critical(9) 2013-04-06 08:23:38 +00:00
taskqueue.h Extend taskqueue(9) to enable per-taskqueue callbacks. 2013-03-23 15:11:53 +00:00
termios.h
thr.h
tiio.h
time.h - Make callout(9) tickless, relying on eventtimers(4) as backend for 2013-03-04 11:09:56 +00:00
timeb.h
timeet.h MFcalloutng: 2013-02-28 13:46:03 +00:00
timeffc.h
timepps.h
timers.h
times.h
timespec.h
timetc.h
timex.h
tree.h
tty.h Add tty_set_winsize(). 2012-11-03 22:21:37 +00:00
ttycom.h
ttydefaults.h Add static/const keywords to the arrays. 2013-04-09 16:16:34 +00:00
ttydevsw.h
ttydisc.h
ttyhook.h
ttyqueue.h
turnstile.h
types.h Move the definition of sbintime_t type from <sys/time.h> to <sys/types.h>. 2013-02-28 17:10:30 +00:00
ucontext.h
ucred.h
uio.h Reform the busdma API so that new types may be added without modifying 2013-02-12 16:57:20 +00:00
umtx.h
un.h Add placeholder constants to reserve a portion of the socket option 2013-02-01 15:32:20 +00:00
unistd.h Implement syscall clock_getcpuclockid2, so we can get a clock id 2012-08-17 02:26:31 +00:00
unpcb.h
user.h Re-factor the code to provide kern_proc_filedesc_out(), kern_proc_out(), 2013-04-14 20:01:36 +00:00
utsname.h
uuid.h
vdso.h Rework the __vdso_* symbols attributes to only make the symbols weak, 2013-01-30 12:48:16 +00:00
vmmeter.h - Add system wide page faults requiring I/O counter. 2013-01-28 12:54:53 +00:00
vnode.h When renaming a directory from one parent directory to another, 2013-03-20 17:57:00 +00:00
vtoc.h
wait.h Move the definition of the idtype_t from sys/types.h to sys/wait.h. 2012-11-16 06:29:52 +00:00
watchdog.h watchdogd(8) and watchdog(4) enhancements. 2013-02-27 19:03:31 +00:00