freebsd-nq/sys/sys
Matthew N. Dodd 15317dd875 Alter the behavior of sys/kern/subr_bus.c:device_print_child()
- device_print_child() either lets the BUS_PRINT_CHILD
	  method produce the entire device announcement message or
	  it prints "foo0: not found\n"

Alter sys/kern/subr_bus.c:bus_generic_print_child() to take on
the previous behavior of device_print_child() (printing the
"foo0: <FooDevice 1.1>" bit of the announce message.)

Provide bus_print_child_header() and bus_print_child_footer()
to actually print the output for bus_generic_print_child().
These functions should be used whenever possible (unless you can
just use bus_generic_print_child())

The BUS_PRINT_CHILD method now returns int instead of void.

Modify everything else that defines or uses a BUS_PRINT_CHILD
method to comply with the above changes.

	- Devices are 'on' a bus, not 'at' it.
	- If a custom BUS_PRINT_CHILD method does the same thing
	  as bus_generic_print_child(), use bus_generic_print_child()
	- Use device_get_nameunit() instead of both
	  device_get_name() and device_get_unit()
	- All BUS_PRINT_CHILD methods return the number of
	  characters output.

Reviewed by: dfr, peter
1999-07-29 01:03:04 +00:00
..
_posix.h Well folks, this is it - The second stage of the removal for build support 1999-04-17 08:36:07 +00:00
_sigset.h Implement SA_SIGINFO for i386. Thanks to Bruce Evans for much more 1999-07-06 07:13:48 +00:00
acct.h Fix a dev_t/udev_t issue with accounting. lastcomm now shows the 1999-07-10 06:27:36 +00:00
aio.h Include <sys/time.h> for correctness. BDE has a better version of this, 1999-06-14 19:03:46 +00:00
bio.h bufhashinit() is called with a caddr_t and is expected to return the 1999-07-09 16:41:19 +00:00
bitstring.h
blist.h Add new blist module - radix tree based bitmap allocator with 1999-01-21 08:11:06 +00:00
buf.h bufhashinit() is called with a caddr_t and is expected to return the 1999-07-09 16:41:19 +00:00
bus_dma.h Improve compatibility with other systems by changing the default 1999-07-03 20:14:08 +00:00
bus_private.h * Change device_add_child_after() to device_add_child_ordered() which is 1999-05-28 09:25:16 +00:00
bus.h Alter the behavior of sys/kern/subr_bus.c:device_print_child() 1999-07-29 01:03:04 +00:00
callout.h Expose a slightly-lower-level interface to timeouts which allows callers 1999-03-06 04:46:20 +00:00
ccdvar.h Oops, forgot this bit: don't use <sys/disk.h> 1999-05-06 19:35:55 +00:00
cdefs.h Per request from ache, change the numbering scheme of __FreeBSD_cc_version. 1998-10-29 22:11:08 +00:00
cdio.h Add new atapi-cd driver that supports atapi CD-R/RW drives. 1998-09-08 20:57:47 +00:00
chio.h Fixed pedantic syntax error (trailing comma in enum). 1999-03-06 16:57:12 +00:00
clist.h Some staticized variables were still declared to be extern. 1997-09-07 05:27:26 +00:00
conf.h Now a dev_t is a pointer to struct specinfo which is shared by all specdev 1999-07-20 09:47:55 +00:00
cons.h The second phase of syscons reorganization. 1999-06-22 14:14:06 +00:00
consio.h The second phase of syscons reorganization. 1999-06-22 14:14:06 +00:00
copyright.h Change copyright in kernel output at booting time 1999-03-17 19:55:52 +00:00
dataacq.h Put back this wholly innocent victim of Mike's drive-by shooting on alog; 1999-01-20 13:09:28 +00:00
devfsext.h Rename one of the two devfs_link's to devfs_makelink. 1998-12-10 19:57:01 +00:00
device.h Remove '???' because it generates an annoying message about 1998-07-04 19:00:47 +00:00
devicestat.h Add a prioritization field to the devstat_add_entry() call so that 1999-02-10 00:04:13 +00:00
dir.h
dirent.h Make <sys/dirent.h> and <dirent.h> self-sufficient, using new __intN_t types. 1998-12-19 00:30:01 +00:00
disklabel.h Prototype for alpha_fix_srm_checksum(). 1999-07-01 20:34:28 +00:00
diskmbr.h Prototype for alpha_fix_srm_checksum(). 1999-07-01 20:34:28 +00:00
diskpc98.h Prototype for alpha_fix_srm_checksum(). 1999-07-01 20:34:28 +00:00
diskslice.h remove bdevsw arg from dsopen(); 1998-08-23 20:16:35 +00:00
dkbad.h Forward declare more structs that are used in prototypes here - don't 1998-02-01 20:08:39 +00:00
dkstat.h New Kernel device statistics code. 1998-09-15 08:16:17 +00:00
dmap.h
domain.h Make DOMAIN_SET() use SYSINIT rather than linker sets. 1999-04-26 08:53:03 +00:00
elf32.h The structure Elf_Note does not have 32 and 64 bit variants but always 1999-05-07 22:09:18 +00:00
elf64.h The structure Elf_Note does not have 32 and 64 bit variants but always 1999-05-07 22:09:18 +00:00
elf_common.h The structure Elf_Note does not have 32 and 64 bit variants but always 1999-05-07 22:09:18 +00:00
elf_generic.h The structure Elf_Note does not have 32 and 64 bit variants but always 1999-05-07 22:09:18 +00:00
errno.h typo in comment 1999-04-24 18:26:54 +00:00
exec.h Well folks, this is it - The second stage of the removal for build support 1999-04-17 08:36:07 +00:00
fbio.h The second phase of syscons reorganization. 1999-06-22 14:14:06 +00:00
fcntl.h Implement a new open(2) flag: O_NOFOLLOW. This will instruct open 1998-04-06 17:38:43 +00:00
fdcio.h
file.h Add standard padding argument to pread and pwrite syscall. That should make them 1999-04-04 21:41:28 +00:00
filedesc.h I got another batch of suggestions for cosmetic changes from bde. 1998-11-11 10:56:07 +00:00
filio.h
ftape.h
gmon.h Changed to the C9x draft spelling of the (unsigned) integral type 1998-07-14 05:09:48 +00:00
imgact_aout.h Add provisions for variant core dump file formats, depending on the 1998-09-14 05:36:51 +00:00
imgact_elf.h Hmm- I must be blind. There *was* already an appropriate typedef still 1999-02-06 17:58:06 +00:00
imgact.h Restore support for executing BSD/OS binaries on the i386 by passing 1999-04-03 22:20:03 +00:00
inflate.h Fixed gratuitous ANSIisms. 1997-09-16 11:44:05 +00:00
interrupt.h Stage 1 of a cleanup of the i386 interrupt registration mechanism. 1999-04-21 07:26:30 +00:00
inttypes.h Little reorganization: 1998-12-19 00:02:34 +00:00
ioccom.h This commit fixes various 64bit portability problems required for 1998-06-07 17:13:14 +00:00
ioctl_bt848.h Bt848 driver release 1.65 1999-05-18 12:14:39 +00:00
ioctl_compat.h
ioctl_meteor.h
ioctl.h
ipc.h Change suser_xxx() to suser() where it applies. 1999-04-27 12:21:16 +00:00
jail.h $ brucify -deblunder 1999-05-16 10:51:52 +00:00
joystick.h
kbio.h The second phase of syscons reorganization. 1999-06-22 14:14:06 +00:00
kernel.h A couple of new macros to make implementing tunable values slightly easier. 1999-07-05 08:45:14 +00:00
kthread.h Slight reorganization of kernel thread/process creation. Instead of using 1999-07-01 13:21:46 +00:00
ktrace.h Make sure syscall arguments properly aligned in ktrace records. 1999-06-16 18:37:01 +00:00
libkern.h
linedisc.h Now a dev_t is a pointer to struct specinfo which is shared by all specdev 1999-07-20 09:47:55 +00:00
link_aout.h Add GDB support for ELF shared libs. 1998-05-23 15:17:53 +00:00
link_elf.h Add GDB support for ELF shared libs. 1998-05-23 15:17:53 +00:00
linker_set.h ABS_SET() and BSS_SET() are no longer used. The sole remaining user of 1999-06-26 12:27:01 +00:00
linker.h Add MODINFO_ARGS, parameters passed to a module at load time. 1999-03-08 11:05:52 +00:00
lock.h Convert buffer locking from using the B_BUSY and B_WANTED flags to using 1999-06-26 02:47:16 +00:00
lockf.h Forward declare a struct and #include <sys/queue.h> so that this file 1998-02-03 22:17:45 +00:00
lockmgr.h Convert buffer locking from using the B_BUSY and B_WANTED flags to using 1999-06-26 02:47:16 +00:00
malloc.h Fix warnings in preparation for adding -Wall -Wcast-qual to the 1999-01-27 21:50:00 +00:00
mbuf.h Get rid of MT_RTABLE; multicast routing no longer uses it. 1999-01-18 02:09:52 +00:00
md5.h Export MD5Transform in md5.c and remove a private version in random_machdep.c 1998-03-29 11:55:06 +00:00
mdioctl.h
memrange.h Add a hook that can be called to initialise a slave processor's memory 1999-04-30 22:09:45 +00:00
mman.h Mostly remove the VM_STACK OPTION. 1999-01-26 02:49:52 +00:00
module.h First stages of a module dependency cleanup. This part fixes a 1999-05-08 13:01:59 +00:00
mount.h Well folks, this is it - The second stage of the removal for build support 1999-04-17 08:36:07 +00:00
mouse.h Improve Logitech MouseMan+ protocol support. 1999-07-12 15:16:14 +00:00
msg.h
msgbuf.h Some cleanups related to timecounters and weird ifdefs in <sys/time.h>. 1998-05-28 09:30:28 +00:00
mtio.h Correct a typo about driver state. 1999-05-10 19:49:59 +00:00
namei.h This commit fixes various 64bit portability problems required for 1998-06-07 17:13:14 +00:00
nlist_aout.h Move nlist related defines from link.h into nlist.h. Clean up 1997-12-06 17:59:52 +00:00
param.h Now a dev_t is a pointer to struct specinfo which is shared by all specdev 1999-07-20 09:47:55 +00:00
pciio.h Revive PCIConf. 1998-09-15 08:21:13 +00:00
pioctl.h Add a copyright and license notice, on Jordan's request. 1997-12-20 18:36:02 +00:00
pipe.h I got another batch of suggestions for cosmetic changes from bde. 1998-11-11 10:56:07 +00:00
poll.h Cleaned up some comments and ifdefs. 1998-02-03 22:32:23 +00:00
posix4.h Well folks, this is it - The second stage of the removal for build support 1999-04-17 08:36:07 +00:00
proc.h The buffer queue mechanism has been reformulated. Instead of having 1999-07-04 00:25:38 +00:00
procfs.h Viola! The kernel now generates standard ELF core dumps for ELF 1998-09-14 22:46:08 +00:00
protosw.h Add a flag, passed to pru_send routines, PRUS_MORETOCOME. This 1999-01-20 17:32:01 +00:00
ptrace.h This commit fixes various 64bit portability problems required for 1998-06-07 17:13:14 +00:00
queue.h Backout the previous change. Claimed to break compatibility with 1999-07-06 17:35:48 +00:00
random.h Converted add_interrupt_randomness() to take a `void *' arg. Rewrote 1998-06-21 11:33:32 +00:00
reboot.h Define shift, mask and extraction macros for obtaining the slice number 1998-03-08 15:04:20 +00:00
resource.h Add a new "file" to procfs: "rlimit" which shows the resource limits for 1999-04-30 13:04:21 +00:00
resourcevar.h Enforce monotonicity of apparent process user, system and interrupt times. 1999-03-13 19:46:13 +00:00
rman.h Bring the 'new-bus' to the i386. This extensively changes the way the 1999-04-16 21:22:55 +00:00
rtprio.h Finish _POSIX_PRIORITY_SCHEDULING. Needs P1003_1B and 1998-03-28 11:51:01 +00:00
scsiio.h Serves me right for committing code late at night... 1998-02-01 18:09:50 +00:00
select.h
selinfo.h
sem.h Remove hardwired alignment, align to sizeof(long) which should be more 1998-12-14 21:34:55 +00:00
semaphore.h Finish _POSIX_PRIORITY_SCHEDULING. Needs P1003_1B and 1998-03-28 11:51:01 +00:00
shm.h Forward declare more structs that are used in prototypes here - don't 1998-02-01 20:08:39 +00:00
signal.h Implement SA_SIGINFO for i386. Thanks to Bruce Evans for much more 1999-07-06 07:13:48 +00:00
signalvar.h Implement SA_SIGINFO for i386. Thanks to Bruce Evans for much more 1999-07-06 07:13:48 +00:00
sliceio.h Bad144 support for the slice system (!) 1998-04-22 19:27:54 +00:00
smp.h Implement an all-CPU shootdown-style rendezvous facility. This allows 1999-07-20 06:52:35 +00:00
snoop.h Seventy-odd "its" / "it's" typos in comments fixed as per kern/6108. 1998-04-17 22:37:19 +00:00
socket.h Implemented zero-copy TCP/IP extensions via sendfile(2) - send a 1998-11-05 14:28:26 +00:00
socketvar.h Reviewed by: the cast of thousands 1999-06-17 23:54:50 +00:00
sockio.h Add a new interface ioctl, to return "aux status". 1999-06-19 18:42:31 +00:00
soundcard.h o sys/i386/include/soundcard.h 1999-04-08 08:09:34 +00:00
stat.h $ brucify sys/stat.h 1999-05-12 07:55:42 +00:00
syscall-hide.h Regenerated. 1999-05-13 09:12:57 +00:00
syscall.h Regenerated. 1999-05-13 09:12:57 +00:00
syscall.mk Regenerated. 1999-05-13 09:12:57 +00:00
sysctl.h This Implements the mumbled about "Jail" feature. 1999-04-28 11:38:52 +00:00
sysent.h Implement support for adding syscalls in KLD modules. 1999-01-09 14:15:41 +00:00
syslimits.h
syslog.h Added macros __printflike() and __scanflike() to <sys/cdefs.h>. 1998-07-13 06:45:23 +00:00
sysproto.h Regenerated. 1999-05-13 09:12:57 +00:00
systm.h This makes the in kernel printf routines conform to the documented 1999-07-24 09:34:12 +00:00
tablet.h
termios.h Change a couple of long types to int to match NetBSD so that termios 1998-05-05 21:49:37 +00:00
time.h Added a sysctl "kern.timecounter.hardware" for selecting the hardware 1999-07-18 15:07:20 +00:00
timeb.h
timepps.h Specfic prototypes not needed. 1999-03-30 11:44:59 +00:00
timers.h
times.h
timetc.h Added a sysctl "kern.timecounter.hardware" for selecting the hardware 1999-07-18 15:07:20 +00:00
timex.h Update to latest version from Dave Mills. Mostly textual. 1999-04-04 10:28:42 +00:00
tprintf.h This makes the in kernel printf routines conform to the documented 1999-07-24 09:34:12 +00:00
tty.h I got another batch of suggestions for cosmetic changes from bde. 1998-11-11 10:56:07 +00:00
ttychars.h
ttycom.h follow up to: 1998-12-29 13:06:54 +00:00
ttydefaults.h
ttydev.h
types.h Now a dev_t is a pointer to struct specinfo which is shared by all specdev 1999-07-20 09:47:55 +00:00
ucred.h This Implements the mumbled about "Jail" feature. 1999-04-28 11:38:52 +00:00
uio.h Make our v_usecount vnode reference count work identically to the 1998-01-06 05:26:17 +00:00
un.h Fixed missing and unused forward declarations of structs. 1998-05-17 18:17:59 +00:00
unistd.h Changes to the LINUX_THREADS support to only allocate extra memory for 1999-01-07 21:23:50 +00:00
unpcb.h This Implements the mumbled about "Jail" feature. 1999-04-28 11:38:52 +00:00
user.h Change the definition of e_tdev in struct kinfo_proc from dev_t to udev_t 1999-05-17 13:28:35 +00:00
utsname.h
vadvise.h
vcmd.h
vlimit.h
vmmeter.h Reviewed by: Matthew Dillon <dillon@apollo.backplane.com> 1999-02-25 06:05:28 +00:00
vnioctl.h
vnode.h Add sysctl and support code to allow directories to be VMIO'd. The default 1999-07-26 06:25:53 +00:00
vsio.h
wait.h Fix thread/process tracking and differentiation for Linux threads emulation. 1999-03-02 00:28:09 +00:00
wormio.h Add an ioctl to retrieve the next writable address. 1998-03-31 01:56:29 +00:00
xrpuio.h Header file for XRPU devices. 1998-10-24 19:47:29 +00:00