Page MenuHomeFreeBSD

ufshci: add a control device node
ClosedPublic

Authored by jaeyoon on Sep 10 2026, 8:23 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Oct 7, 1:06 AM
Unknown Object (File)
Tue, Oct 6, 5:10 AM
Unknown Object (File)
Sat, Oct 3, 9:07 PM
Unknown Object (File)
Fri, Oct 2, 5:35 PM
Unknown Object (File)
Sun, Sep 27, 12:50 PM
Unknown Object (File)
Sat, Sep 26, 11:15 PM
Unknown Object (File)
Sat, Sep 26, 9:25 PM
Unknown Object (File)
Sat, Sep 26, 2:46 PM
Subscribers
None

Details

Summary

The driver only exposed a CAM SIM. Userland had no way to reach the
device for anything that is not a SCSI command, so reading a descriptor
or an attribute was impossible.

Add /dev/ufshci%d as a root only node and the ioctl ABI header for it.
The node answers no ioctl yet. The header pulls in ufshci.h, which
declares bool only under _KERNEL, so include stdbool.h for userland the
way nvme.h already does.

Sponsored by: Samsung Electronics

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 76728
Build 73611: arc lint + arc unit