---
title: AVCCommandInGeneration
framework: kernel
role: pseudoSymbol
path: kernel/iofirewireavcnub/1810846-avccommandingeneration
---

# AVCCommandInGeneration

Sends an AVC command to the device and stores the response. The command must complete in the specified FireWire bus generation otherwise kIOFireWireBusReset is returned.

## Declaration

```occ
virtual IOReturn AVCCommandInGeneration(
 UInt32generation, 
 const UInt8 *command,
 UInt32cmdLen,
 UInt8 *response,
 UInt32 *responseLen) = 0; 
```

## Parameters

- `generation`: The bus generation that the command must execute in.
- `command`: Pointer to command to send.
- `cmdLen`: Length of the command.
- `response`: Pointer to place to store the response.
- `responseLen`: Pointer to response length - initialize to the size of the buffer pointed to by response, updated to the number of bytes returned by the device.

## See Also

### Miscellaneous

- [AVCCommand](kernel/iofirewireavcnub/1810816-avccommand.md)
- [getDevice](kernel/iofirewireavcnub/1810878-getdevice.md)
- [updateAVCCommandTimeout](kernel/iofirewireavcnub/1810906-updateavccommandtimeout.md)
