freebsd-nq/sys/kern
Mitchell Horne 36a8572ee8 bus_if: provide a default null rescan method
There is an existing helper method in subr_bus.c, but almost no drivers
know to use it. It also returns the same error as an empty method,
making it not very useful. Move this to bus_if.m and return a more
sensible error code.

This gives a slightly more meaningful error message when attempting
'devctl rescan' on buses and devices alike:
  "Device not configured" --> "Operation not supported by device"

Reviewed by:	imp
MFC after:	1 week
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D35501
2022-06-23 15:15:10 -03:00
..
bus_if.m bus_if: provide a default null rescan method 2022-06-23 15:15:10 -03:00
clock_if.m
cpufreq_if.m
device_if.m
firmw.S
genassym.sh
genoffset.c
genoffset.sh
imgact_aout.c Retire sv_transtrap 2022-05-20 14:54:03 +03:00
imgact_binmisc.c
imgact_elf32.c
imgact_elf64.c
imgact_elf.c
imgact_shell.c
init_main.c Retire sv_transtrap 2022-05-20 14:54:03 +03:00
init_sysent.c
kern_acct.c sysent: Get rid of bogus sys/sysent.h include. 2022-05-28 20:52:17 +03:00
kern_alq.c
kern_boottrace.c
kern_clock.c
kern_clocksource.c
kern_condvar.c
kern_conf.c Drop d_dump from struct cdevsw 2022-05-13 10:42:17 -03:00
kern_cons.c
kern_context.c sysent: Get rid of bogus sys/sysent.h include. 2022-05-28 20:52:17 +03:00
kern_cpu.c cpufreq: Remove unused devclass argument to DRIVER_MODULE. 2022-05-06 15:46:58 -07:00
kern_cpuset.c Finish cpuset_getaffinity() after f35093f8 2022-05-28 20:53:08 +03:00
kern_ctf.c
kern_descrip.c
kern_dtrace.c
kern_dump.c kerneldump: remove physical from dump routines 2022-05-13 10:43:19 -03:00
kern_environment.c sysent: Get rid of bogus sys/sysent.h include. 2022-05-28 20:52:17 +03:00
kern_et.c
kern_event.c struct kinfo_file changes needed for lsof to work using only usermode APIs` 2022-06-18 12:34:25 +03:00
kern_exec.c Do not single-thread itself when the process single-threaded some another process 2022-06-13 22:30:03 +03:00
kern_exit.c Do not single-thread itself when the process single-threaded some another process 2022-06-13 22:30:03 +03:00
kern_fail.c
kern_ffclock.c sysent: Get rid of bogus sys/sysent.h include. 2022-05-28 20:52:17 +03:00
kern_fork.c Do not single-thread itself when the process single-threaded some another process 2022-06-13 22:30:03 +03:00
kern_hhook.c
kern_idle.c
kern_intr.c
kern_jail.c
kern_kcov.c
kern_khelp.c
kern_kthread.c
kern_ktr.c
kern_ktrace.c
kern_linker.c sysent: Get rid of bogus sys/sysent.h include. 2022-05-28 20:52:17 +03:00
kern_lock.c
kern_lockf.c KERN_LOCKF: report kl_file_fsid consistently with stat(2) 2022-06-18 12:34:17 +03:00
kern_lockstat.c
kern_loginclass.c
kern_malloc.c
kern_mbuf.c mbuf(9): Implement a leaf network interface field in the mbuf packet header. 2022-06-07 12:54:42 +02:00
kern_mib.c
kern_module.c
kern_mtxpool.c
kern_mutex.c
kern_ntptime.c
kern_osd.c
kern_physio.c
kern_pmc.c
kern_poll.c
kern_priv.c
kern_proc.c Make stop_all_proc_block interruptible to avoid deadlock with parallel suspension 2022-06-13 22:30:03 +03:00
kern_procctl.c reap_kill_proc(): avoid singlethreading any other process if we are exiting 2022-06-13 22:30:03 +03:00
kern_prot.c sysent: Get rid of bogus sys/sysent.h include. 2022-05-28 20:52:17 +03:00
kern_racct.c sysent: Get rid of bogus sys/sysent.h include. 2022-05-28 20:52:17 +03:00
kern_rangelock.c
kern_rctl.c sysent: Get rid of bogus sys/sysent.h include. 2022-05-28 20:52:17 +03:00
kern_resource.c
kern_rmlock.c
kern_rwlock.c
kern_sdt.c
kern_sema.c
kern_sendfile.c sockets: use socket buffer mutexes in struct socket directly 2022-05-12 13:22:12 -07:00
kern_sharedpage.c
kern_shutdown.c Use KERNEL_PANICKED() in more places 2022-06-02 10:15:43 -03:00
kern_sig.c Do not single-thread itself when the process single-threaded some another process 2022-06-13 22:30:03 +03:00
kern_switch.c
kern_sx.c
kern_synch.c Correctly measure system load averages > 1024 2022-05-06 17:25:43 -06:00
kern_syscalls.c
kern_sysctl.c
kern_tc.c
kern_thr.c
kern_thread.c kern_thread.c: Fix i386 build 2022-06-13 19:35:33 -07:00
kern_time.c sysent: Get rid of bogus sys/sysent.h include. 2022-05-28 20:52:17 +03:00
kern_timeout.c Run softclock threads at a hardware ithread priority. 2022-04-21 10:40:01 -07:00
kern_tslog.c
kern_ubsan.c
kern_umtx.c vm_object: Use the vm_object_(set|clear)_flag() helpers 2022-06-14 12:00:59 -04:00
kern_uuid.c
kern_vnodedumper.c kerneldump: remove physical argument from d_dumper 2022-05-13 10:42:48 -03:00
kern_xxx.c
ksched.c
link_elf_obj.c
link_elf.c
linker_if.m
Make.tags.inc
Makefile
md4c.c
md5c.c
msi_if.m
p1003_1b.c sysent: Get rid of bogus sys/sysent.h include. 2022-05-28 20:52:17 +03:00
pic_if.m
posix4_mib.c
sched_4bsd.c
sched_ule.c
serdev_if.m
stack_protector.c
subr_acl_nfs4.c
subr_acl_posix1e.c
subr_asan.c kasan: Create a shadow for the bootstack prior to hammer_time() 2022-06-15 11:39:10 -04:00
subr_atomic64.c
subr_autoconf.c
subr_blist.c
subr_boot.c
subr_bufring.c
subr_bus_dma.c
subr_bus.c bus_if: provide a default null rescan method 2022-06-23 15:15:10 -03:00
subr_busdma_bounce.c busdma_bounce: Batch bounce page free operations when possible. 2022-04-21 12:01:55 -07:00
subr_busdma_bufalloc.c
subr_capability.c
subr_clock.c
subr_clockcalib.c
subr_compressor.c
subr_counter.c
subr_coverage.c
subr_csan.c
subr_devmap.c
subr_devstat.c
subr_disk.c
subr_dummy_vdso_tc.c
subr_early.c
subr_epoch.c
subr_eventhandler.c
subr_fattime.c
subr_filter.c
subr_firmware.c
subr_gtaskqueue.c
subr_hash.c
subr_hints.c
subr_intr.c
subr_kdb.c
subr_kobj.c
subr_lock.c
subr_log.c
subr_mchain.c
subr_module.c
subr_msan.c Use KERNEL_PANICKED() in more places 2022-06-02 10:15:43 -03:00
subr_msgbuf.c msgbuf: Allow microsecond granularity timestamps 2022-05-07 09:32:22 -06:00
subr_param.c
subr_pcpu.c
subr_pctrie.c
subr_physmem.c
subr_pidctrl.c
subr_power.c
subr_prf.c
subr_prng.c
subr_prof.c
subr_rangeset.c
subr_rman.c
subr_rtc.c
subr_sbuf.c
subr_scanf.c
subr_sfbuf.c
subr_sglist.c
subr_sleepqueue.c
subr_smp.c smp: Use local copies of the setup function pointer and argument 2022-06-06 11:29:51 -04:00
subr_smr.c
subr_stack.c
subr_stats.c
subr_syscall.c
subr_taskqueue.c LinuxKPI: Implement kthread_worker related functions 2022-05-17 15:10:20 +03:00
subr_terminal.c
subr_trap.c
subr_turnstile.c
subr_uio.c
subr_unit.c subr_unit.c: make userspace tests buildable 2022-04-28 03:00:14 +03:00
subr_vmem.c
subr_witness.c
sys_capability.c
sys_eventfd.c struct kinfo_file changes needed for lsof to work using only usermode APIs` 2022-06-18 12:34:25 +03:00
sys_generic.c Add timespecvalid_interval macro and use it. 2022-04-25 10:20:54 +03:00
sys_getrandom.c
sys_pipe.c struct kinfo_file changes needed for lsof to work using only usermode APIs` 2022-06-18 12:34:25 +03:00
sys_procdesc.c
sys_process.c
sys_socket.c struct kinfo_file changes needed for lsof to work using only usermode APIs` 2022-06-18 12:34:25 +03:00
syscalls.c
syscalls.master
systrace_args.c
sysv_ipc.c
sysv_msg.c
sysv_sem.c sysvsem: Fix a typo 2022-05-14 14:07:20 +03:00
sysv_shm.c
tty_compat.c
tty_info.c Correctly measure system load averages > 1024 2022-05-06 17:25:43 -06:00
tty_inq.c
tty_outq.c
tty_pts.c sysent: Get rid of bogus sys/sysent.h include. 2022-05-28 20:52:17 +03:00
tty_tty.c
tty_ttydisc.c
tty.c
uipc_accf.c
uipc_debug.c sockbuf: remove unused mbuf counter and cluster counter 2022-05-27 08:20:17 -07:00
uipc_domain.c
uipc_ktls.c ktls: Add full support for TLS RX offloading via network interface. 2022-06-07 12:58:09 +02:00
uipc_mbuf2.c
uipc_mbuf.c mbuf(9): Fix size of mbuf for all 32-bit platforms (i386, ARM, PowerPC and RISCV) 2022-06-07 22:09:10 +02:00
uipc_mbufhash.c
uipc_mqueue.c
uipc_sem.c
uipc_shm.c
uipc_sockbuf.c ktls: Add full support for TLS RX offloading via network interface. 2022-06-07 12:58:09 +02:00
uipc_socket.c socket: Fix a race between kevent(2) and listen(2) 2022-06-16 10:20:04 -04:00
uipc_syscalls.c sysent: Get rid of bogus sys/sysent.h include. 2022-05-28 20:52:17 +03:00
uipc_usrreq.c unix/*: rewrite unp_internalize() cmsg parsing cycle 2022-06-06 10:05:28 -07:00
vfs_acl.c sysent: Get rid of bogus sys/sysent.h include. 2022-05-28 20:52:17 +03:00
vfs_aio.c aio: Improve UMA usage 2022-06-20 12:48:13 -04:00
vfs_bio.c vfs: fix vfs_bio_clrbuf() for PAGE_SIZE > block size 2022-06-21 17:58:52 -07:00
vfs_cache.c
vfs_cluster.c
vfs_default.c
vfs_export.c
vfs_extattr.c
vfs_hash.c
vfs_init.c
vfs_lookup.c Add a __witness_used for variables only used under #ifdef WITNESS. 2022-04-27 11:46:16 -07:00
vfs_mount.c mount: revert the active vnode reporting feature 2022-06-15 07:24:55 -07:00
vfs_mountroot.c sysent: Get rid of bogus sys/sysent.h include. 2022-05-28 20:52:17 +03:00
vfs_subr.c
vfs_syscalls.c sysent: Get rid of bogus sys/sysent.h include. 2022-05-28 20:52:17 +03:00
vfs_vnops.c
vnode_if.src