版權所有 © 2014 tutorialspoint
int ioperm(unsigned long from, unsigned long num, int turn_on);
只能以這種方式指定前0x3ff個I/O埠。對於更多埠,必須使用 iopl() 函式。許可權不會在 fork() 上繼承,而是在 exec() 上繼承。這對於向非特權任務授予埠訪問許可權很有用。
此呼叫主要用於i386架構。在許多其他架構上,它不存在或將始終返回錯誤。
iopl (2)
廣告