Page MenuHomeFreeBSD

kern: add devctl_notifyf()
AcceptedPublic

Authored by kevans on Mar 9 2022, 5:24 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, May 9, 3:35 AM
Unknown Object (File)
Sun, Apr 27, 2:29 AM
Unknown Object (File)
Sat, Apr 26, 1:06 PM
Unknown Object (File)
Sat, Apr 26, 3:18 AM
Unknown Object (File)
Fri, Apr 18, 1:46 AM
Unknown Object (File)
Feb 26 2025, 6:17 AM
Unknown Object (File)
Feb 6 2025, 10:00 PM
Unknown Object (File)
Jan 22 2025, 8:09 PM

Details

Reviewers
imp
bapt
Group Reviewers
manpages
Summary

This version is identical to devctl_notify(), except it fits slightly
less trivial needs by taking a data format string and varargs to go
with it. This lets us avoid extra allocations on top in various
callers, making them a bit less complicated.

Diff Detail

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

Event Timeline

debdrup added a subscriber: debdrup.

Manual page changes look good to me.

This revision is now accepted and ready to land.Mar 9 2022, 3:56 PM

Other than that, LGTM.

share/man/man9/devctl_notify.9
38

"userland", I think? I don't remember seeing it split.

Rebase past nlsysevent's devctl tap

Alright, hear me out, this isn't the ugliest thing I've ever written. This does
result in a functional difference for nlsysevent, in that we may not tap out an
nlsysevent if we couldn't allocate the sbuf/dei bits for whatever reason. I
don't think it's necessarily a bad difference, but it's a notable one.

This revision now requires review to proceed.Wed, May 7, 1:05 AM

Tap in bapt, too, since this could slightly change some nlsysevent semantics in more edgey cases.

This revision is now accepted and ready to land.Wed, May 7, 6:56 AM