How to access the hardware in Linux in C?

4

I know of the existence of the Microsoft Win32 API, which allows the programmer to manipulate low-level resources such as serial ports, memories, CPU, GPU, etc. However, I work with Linux environments, and would like to know how to access the hardware in Linux using the C language.

    
asked by anonymous 08.01.2016 / 17:06

1 answer

6

You do not access the hardware, you call the operating system API. By chance some of them access the hardware for you.

Windows and Linux have different philosophies on how to do this. What can be considered equivalent to Win32 are the syscalls .

Recommended book to learn "everything" .

    
08.01.2016 / 17:11