HomeFreeBSD

compat/linux: Add Linux i2c-dev ioctl compatibility support

Description

compat/linux: Add Linux i2c-dev ioctl compatibility support

Implement Linux I2C ioctl translation in the Linux compatibility layer
and wire iicbus cdevs up for in-kernel rdwr handling.
Support common i2c-dev requests including SLAVE, FUNCS, and RDWR,
while rejecting unsupported 10-bit and SMBus operations.

Signed-off-by: YAO, Xin <mr.yaoxin@outlook.com>
Reviewed by: imp, adrian, pouria
Differential Revision: https://reviews.freebsd.org/D56251

Details

Provenance
mr.yaoxin_outlook.comAuthored on Apr 13 2026, 12:28 PM
pouriaCommitted on Apr 13 2026, 12:31 PM
Reviewer
imp
Differential Revision
D56251: linux: add Linux i2c-dev ioctl compatibility support
Parents
rGe9fc0c538264: if_clone: Make ifnet_detach_sxlock opaque to consumers
Branches
Unknown
Tags
Unknown