---
title: doRead
framework: kernel
role: pseudoSymbol
path: kernel/iofwphysicaladdressspace/1812935-doread
---

# doRead

A method for processing an address space read request

## Declaration

```occ
virtual UInt32 doRead(
 UInt16nodeID,
 IOFWSpeed &speed,
 FWAddressaddr,
 UInt32len, 
 IOMemoryDescriptor **buf,
 IOByteCount *offset, 
 IOFWRequestRefConrefcon); 
```

## Parameters

- `nodeID`: FireWire Read from nodeID.
- `speed`: at this 'speed'.
- `addr`: with FireWire address 'addr'.
- `len`: read 'len' bytes from nodeID.
- `buf`: points to a memory descriptor containing the packet data.
- `offset`: start from this 'offset' in 'buf'.
- `refcon`: Can be queried for extra info about the request.

## Return Value

Return Value UIn32 returns kFWResponseComplete on success

## See Also

### Miscellaneous

- [checkMemoryInRange](kernel/iofwphysicaladdressspace/1812923-checkmemoryinrange.md)
- [complete](kernel/iofwphysicaladdressspace/1812928-complete.md)
- [doWrite](kernel/iofwphysicaladdressspace/1812940-dowrite.md)
- [getDMACommand](kernel/iofwphysicaladdressspace/1812943-getdmacommand.md)
- [getLength](kernel/iofwphysicaladdressspace/1812947-getlength.md)
- [getMemoryDescriptor](kernel/iofwphysicaladdressspace/1812953-getmemorydescriptor.md)
- [getSegments](kernel/iofwphysicaladdressspace/1812956-getsegments.md)
- [init](kernel/iofwphysicaladdressspace/1812960-init.md)
- [initWithDesc](kernel/iofwphysicaladdressspace/1812962-initwithdesc.md)
- [initWithDMACommand](kernel/iofwphysicaladdressspace/1812968-initwithdmacommand.md)
- [isPrepared](kernel/iofwphysicaladdressspace/1812974-isprepared.md)
- [prepare](kernel/iofwphysicaladdressspace/1812981-prepare.md)
- [setDMACommand](kernel/iofwphysicaladdressspace/1812990-setdmacommand.md)
- [setMemoryDescriptor](kernel/iofwphysicaladdressspace/1813001-setmemorydescriptor.md)
- [synchronize](kernel/iofwphysicaladdressspace/1813014-synchronize.md)
