Which process updates /proc/scsi/scsi?

view full story

http://unix.stackexchange.com – I wrote C that displays info about my hardware on ubuntu. Now I wonder how I can make it more flexible such as querying the hardware directly instead of the file the os updates. So I think I can look what write to /proc/scsi/scsi and do the same so that this code can work also on unices who could have other method than a /proc/scsi/scsi and so that I can learn how to display hardware information. #include <stdio.h> #include <stdlib.h> int main() { char ch, file_name[25] = "/proc/scsi/scsi"; FILE *fp; fp = fopen(file_name,"r"); // read mode if( fp == NULL ) { (HowTos)