Created
May 28, 2020 23:46
-
-
Save DanielO/317711cf2afb7f968d53cae2047a8a16 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sysctl_tree = SYSCTL_ADD_NODE(&sc->sysctl_ctx, | |
SYSCTL_STATIC_CHILDREN(_hw_usb_ugsio), OID_AUTO, | |
unitstr, CTLFLAG_RD, 0, "UGSIO"); | |
if (sysctl_tree == NULL) | |
goto error; | |
SYSCTL_ADD_PROC(&sc->sysctl_ctx, SYSCTL_CHILDREN(sysctl_tree), | |
OID_AUTO, "serialnum", CTLTYPE_STRING | CTLFLAG_RW, | |
dev, 0, &ugsio_sysctl_sn, "A", "serial number"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment