简体   繁体   中英

Hardware write and read function for linux

What would be the equivalent function i could choose in LINUX as compared to below DOS calls ?

inportb(x) 
outportb(x,v)

Thanks Brijesh

If you are doing only port I/O then you can use ioperm to change permissions and then use in*/out* from user space. Obviously user permissions still apply.

You can use inb() and outb() calls. Go here you'll find more information how to use it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM