Changes between Version 10 and Version 11 of nic_driver
- Timestamp:
- Oct 28, 2014, 7:23:00 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
nic_driver
v10 v11 36 36 == __Blocking functions using a physical_memcpy__ == 37 37 38 === int '''_nic_sync_send'''( void* vbase) ===39 This blocking function uses a physical_memcpy() to transfer one container (4 Kbytes) from a single user buffer to the NIC channel allocated to the calling task. The ''' vbase''' argument is the user buffer virtual base address.38 === int '''_nic_sync_send'''( unsigned long long pbuf ) === 39 This blocking function uses a physical_memcpy() to transfer one container (4 Kbytes) from a single user buffer to the NIC channel allocated to the calling task. The '''pbuf''' argument is the user buffer physical base address. 40 40 41 41 Return 0 in case of success. Return -1 if buffer not mapped or not user accessible. 42 42 43 === int '''_nic_sync_receive'''( void* vbase) ===44 This blocking function uses a physical_memcpy() to transfer one container (4 Kbytes) from the NIC channel allocated to the calling task, to a single user buffer. The ''' vbase''' argument is the user buffer virtual base address.43 === int '''_nic_sync_receive'''( unsigned long long pbuf ) === 44 This blocking function uses a physical_memcpy() to transfer one container (4 Kbytes) from the NIC channel allocated to the calling task, to a single user buffer. The '''pbuf''' argument is the user buffer vphysical base address. 45 45 46 46 Return 0 in case of success. Return -1 if buffer not mapped or not user accessible.