Is there ever a reason to query ioctl for hardware info when we have sysfs?
1
vote
1
answer
263
views
My assumption is that
sysfs
is built using ioctl
queries, meaning all the information you would want (or at least most of it) is already available by simply reading files on sysfs
. I notice some programs (e.g., hdparm
) still use ioctl
calls rather than simply hitting sysfs
, and I'm curious if there's a reason for that. Is sysfs
unreliable? If you're only interested in hardware info, is there a reason to use ioctl
over sysfs
?
Asked by Bob Odenkirk
(25 rep)
Jul 5, 2022, 04:14 PM
Last activity: Jan 4, 2023, 09:27 PM
Last activity: Jan 4, 2023, 09:27 PM