haiku/headers
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
..
build add physical_block_size field where applicable 2022-09-23 06:56:01 +00:00
compatibility headers/bsd: Rewrite link_elf.h. 2022-06-28 13:07:53 -04:00
config riscv: cleanup architecture macro checks 2021-09-01 18:04:59 +00:00
cpp
glibc
libs Removed 'register' storage class compiler warnings 2022-09-12 14:03:28 +00:00
os InterfaceDefs: Specify INSETS constants in terms of SPACING constants. 2022-09-28 19:47:38 -04:00
posix libroot: Add support for C11 Threads missing parts (except gcc2). 2022-09-19 19:45:45 +00:00
private kernel/device_manager: Implement B_GET_DRIVER_FOR_DEVICE 2022-10-17 06:13:07 +00:00
tools cppunit: Enable CPPUNIT_HAVE_SSTREAM for the non-legacy GCC. 2022-03-29 19:09:38 -04:00