Page MenuHomeFreeBSD

ufshci: add a control device node
Needs ReviewPublic

Authored by jaeyoon on Thu, Sep 10, 8:23 AM.

Details

Reviewers
imp
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