---
title: setCommandFunction
framework: kernel
role: pseudoSymbol
path: kernel/iofirewiresbp2managementorb/1813224-setcommandfunction
---

# setCommandFunction

Sets the function of the management ORB.

## Declaration

```occ
virtual IOReturn setCommandFunction(
 UInt32function ); 
```

## Parameters

- `function`: a value indicating the desired management function.

## Return Value

Return Value Returns kIOReturnSuccess if function was a legal function.

## Overview

Overview Sets the the function of the management ORB. Legal values are kFWSBP2QueryLogins, kFWSBP2AbortTask, kFWSBP2AbortTaskSet, kFWSBP2LogicalUnitReset, and kFWSBP2TargetReset.

## See Also

### Miscellaneous

- [getCommandFunction()](kernel/iofirewiresbp2managementorb/1813171-getcommandfunction.md)
- [getCommandFunction()](kernel/iofirewiresbp2managementorb/1813185-getcommandfunction.md)
- [getManageeCommand](kernel/iofirewiresbp2managementorb/1813195-getmanageecommand.md)
- [getResponseBuffer](kernel/iofirewiresbp2managementorb/1813205-getresponsebuffer.md)
- [release](kernel/iofirewiresbp2managementorb/1813216-release.md)
- [setManageeCommand](kernel/iofirewiresbp2managementorb/1813235-setmanageecommand.md)
- [setResponseBuffer(IOMemoryDescriptor *)](kernel/iofirewiresbp2managementorb/1813243-setresponsebuffer.md)
- [setResponseBuffer(void *, UInt32)](kernel/iofirewiresbp2managementorb/1813252-setresponsebuffer.md)
