Changes between Version 3 and Version 4 of ioc_device_api


Ignore:
Timestamp:
Nov 7, 2016, 12:36:11 PM (7 years ago)
Author:
alain
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ioc_device_api

    v3 v4  
    2727== B) Access functions ==
    2828
    29 === 1) '''void dev_ioc_init'''( xptr_t   xp_dev ) ===
     29=== 1) '''void dev_ioc_init'''( xptr_t    xp_dev ) ===
    3030
    3131This function makes two initialisations:
     
    3535The <xp_dev> argument is an extended pointer on the IOC device descriptor.
    3636
    37 === 2) '''void dev_ioc_read'''( char * buffer , uint32_t  lba , uint32_t  count) ===
     37=== 2) '''void dev_ioc_read'''( char * buffer , uint32_t  lba , uint32_t  count ) ===
    3838
    3939This blocking function try to tranfer one or several contiguous blocks of data from the block device to a memory buffer. The calling thread is registered in the device pending request queue, and descheduled, waiting on transfer completion. It is re-activared by the IRQ signaling completion. It must be called in the client cluster.
     
    4242The <count> argument is the number of blocks to move.
    4343
    44 === 3) '''void dev_ioc_write'''( char * buffer , uint32_t  lba , uint32_t  count) ===
     44=== 3) '''void dev_ioc_write'''( char * buffer , uint32_t  lba , uint32_t  count ) ===
    4545
    4646This blocking function try to tranfer one or several contiguous blocks of data from a memory buffer to the block device. The calling thread is actually registered in the device pending request queue, and descheduled, waiting on transfer completion. It is re-activared by the IRQ signaling completion. It must be called in the client cluster.