haiku/headers/private/kernel
Jérôme Duval 8e17b43da6 kernel/device_manager: Implement B_GET_DRIVER_FOR_DEVICE
for legacy and new drivers.

This is an opcode for ioctl that can be used on almost any device entry found in /dev.
When used, ioctl will fill a buffer with the absolute path to the driver file that is
being used by the device.

This opcode was available in BeOS R5, though remained unimplemented in Haiku since
the introduction of the Device Manager almost two decades ago.

Original change by Jacob Secunda.

Change-Id: Ic49141b677b4158a63918459d4048450c825447c
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5078
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
2022-10-17 06:13:07 +00:00
..
arch kernel/x86_64: configure LFENCE as a serializing instruction on AMD 2022-09-25 08:15:15 +00:00
boot arm: detect SoC timer from FDT for OMAP3 and PXA 2022-08-09 18:15:55 +00:00
disk_device_manager add physical_block_size field where applicable 2022-09-23 06:56:01 +00:00
fs KPath: Use an object_cache for the path buffers in the normal case. 2019-07-11 22:52:10 -04:00
platform efi: fix alignment for block device protocol 2022-01-04 17:56:41 +00:00
posix POSIX: introduce sem_clockwait 2022-02-18 21:27:06 +00:00
slab kernel: Whitespace cleanup only. 2020-06-13 23:24:27 +02:00
util kernel: Added operator delete(ptr, nothrow_t) 2022-10-12 20:35:55 +00:00
vm riscv64/smp: Implement multi-processor support 2021-12-12 15:35:24 +00:00
acpi.h arm64: Discover PCI from ACPI. 2022-08-17 19:23:51 +00:00
AllocationTracking.h
AreaKeeper.h AreaKeeper.h: move to headers/private/kernel 2020-03-23 16:38:01 +00:00
block_cache.h
boot_device.h
boot_item.h
boot_splash.h
commpage_compat.h kernel: add a compatibility commpage on x86_64. 2018-05-18 05:11:07 +00:00
commpage.h
condition_variable.h kernel/condition_variable: Remove a confusing requirement for published variables. 2022-03-09 18:55:55 -05:00
console.h
core_dump.h
cpu.h cpu.h: Fix size of array element is not a multiple of its alignment 2021-05-11 15:56:06 +00:00
debug_heap.h
debug_hex_dump.h
debug_paranoia.h
debug.h kernel/debug: Adjust range marker macros. 2021-08-31 22:00:36 -04:00
debugger_keymaps.h
DPC.h
elf_priv.h Revert team and thread changes for COMPAT_MODE (hrev52010 & hrev52011). 2018-06-14 22:25:06 -04:00
elf.h kernel: support elf32 on x86_64. 2018-05-15 10:29:00 +00:00
file_cache.h
frame_buffer_console.h
generic_syscall.h
heap.h kernel: Remove malloc_referenced now that it is unused. 2022-02-09 16:42:06 -05:00
int.h
kdevice_manager.h
kdriver_settings.h
kernel_c++_structs.h
kernel_daemon.h
kernel.h kernel.h: don't include user address tests in boot loader 2022-06-04 10:31:05 +12:00
kimage.h
kmodule.h kernel/device_manager: Implement B_GET_DRIVER_FOR_DEVICE 2022-10-17 06:13:07 +00:00
kscheduler.h kernel/scheduler: enable cpu load tracking after boot 2020-09-17 15:45:25 +00:00
ksignal.h
ksyscalls.h
ksystem_info.h
listeners.h
load_tracking.h kernel: Fix overflow in load tracking for very large deltas. 2018-01-05 22:48:56 +01:00
lock.h Cleanup: Various comment and whitespace fixes. 2020-08-01 19:23:27 +00:00
low_resource_manager.h
messaging.h
MessagingServiceDefs.h
Notifications.h Add missing includes following previous commit. 2021-09-01 13:10:04 -04:00
port.h
real_time_clock.h
safemode.h
scheduling_analysis.h
sem.h
smp.h kernel/smp: Avoid casting spinlocks, which are structures. 2021-11-23 13:52:44 -05:00
stack_protector.h Implement stack protection support 2021-05-03 17:52:31 +00:00
syscall_restart.h kernel: Style fixup. 2021-08-27 19:02:20 -04:00
system_profiler.h
team.h kernel: Commit missing change to team.h. 2019-07-08 17:58:43 -04:00
thread_types.h kernel/vm: Completely replace mlock() implementation. 2022-03-30 20:17:50 +00:00
thread.h wait_for_thread_etc: expose as syscall/make public. 2022-04-25 19:47:26 +00:00
timer.h
tracing.h
user_atomic.h
user_debugger.h
user_mutex.h
UserEvent.h
usergroup.h
UserTimer.h
vfs.h POSIX: introduce ppoll 2021-06-19 18:09:25 +00:00
wait_for_objects.h wait_for_objects: add macros for output-only select types 2018-02-26 10:43:54 +00:00