Function - List the devices that permit target thread to invoke operations.
kern_return_t i386_io_port_list (thread_act_t target_act, device_list_t device_list);
The i386_io_port_list function returns a list of the devices named in the thread's I/O permission bitmap, namely those permitting I/O instructions to be executed against them.
Only generic errors apply.
Functions: i386_io_port_add, i386_io_port_remove.