---
title: IOFBGetI2CInterfaceCount
framework: IOKit
role: symbol
role_heading: Function
platforms: [Mac Catalyst 13.0+, macOS 10.3+]
path: iokit/1410333-iofbgeti2cinterfacecount
---

# IOFBGetI2CInterfaceCount

Returns a count of I2C interfaces available associated with an IOFramebuffer instance.

## Declaration

```occ
IOReturn IOFBGetI2CInterfaceCount(io_service_t framebuffer, IOItemCount *count);
```

## Parameters

- `framebuffer`: The io_service_t of an IOFramebuffer instance. CoreGraphics will provide this for a CGDisplay with the CGDisplayIOServicePort() call.
- `count`: Interface count is returned.

## Return Value

Return Value An IOReturn code.

## Discussion

Discussion Returns a count of I2C interfaces available associated with an IOFramebuffer instance.

## See Also

### Miscellaneous

- [IOFBCopyI2CInterfaceForBus](iokit/1410345-iofbcopyi2cinterfaceforbus.md)
- [IOI2CInterfaceClose](iokit/1410390-ioi2cinterfaceclose.md)
- [IOI2CInterfaceOpen](iokit/1410388-ioi2cinterfaceopen.md)
- [IOI2CSendRequest](iokit/1410373-ioi2csendrequest.md)
