Next: Device Status, Previous: Device Write, Up: Device Interface
The function
device_map
creates a new memory manager for device and returns a port to it in pager. The memory manager is usable as a memory object in avm_map
call. The call is device dependent.The protection for the memory object is specified by prot. The memory object starts at offset within the device and extends size bytes. unmap is currently unused.
The function returns
D_SUCCESS
if some data was successfully written andD_NO_SUCH_DEVICE
if device does not denote a device port or the device is dead or not completely open.