There is a working machine with Linux OS. It is required to get access to I / O ports from the console user application (ring3).
Under Windows, this problem is solved in the following ways:
- driver type userport or giveio -> directly in the program we do input-output through asm commands in / out
- a proprietary “virtual service” driver, which in ring0 does all the rough work and provides an interface using IOCTL to application programs. The user application calls the appropriate IOCTLs.
What are the options for Linux? I ask you to use short code examples.
PS: es-but root privileges have a place to be.