Page MenuHomeFreeBSD

callout: provide callout_init_lock()
ClosedPublic

Authored by glebius on Sat, Sep 5, 5:50 PM.
Tags
None
Referenced Files
F174417332: D59456.id187148.diff
Sat, Oct 3, 1:19 AM
F174381364: D59456.id186014.diff
Fri, Oct 2, 7:52 PM
F174373439: D59456.id185945.diff
Fri, Oct 2, 6:40 PM
F174358774: D59456.id187148.diff
Fri, Oct 2, 4:14 PM
F174353624: D59456.id186149.diff
Fri, Oct 2, 3:33 PM
Unknown Object (File)
Thu, Oct 1, 12:28 PM
Unknown Object (File)
Thu, Oct 1, 5:32 AM
Unknown Object (File)
Sat, Sep 26, 1:38 AM
Subscribers

Details

Summary

This is type agnostic locked callout initializer. The callout_init_mtx()
and etc remain for compatibility.

Diff Detail

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

Event Timeline

  • Use _Generic() instead of transparent union
  • Reduce amount of changes.

Remove mention of lock_object_t in the manual page.

kib added inline comments.
share/man/man9/callout.9
216
This revision is now accepted and ready to land.Sun, Sep 6, 9:24 PM
markj added inline comments.
share/man/man9/callout.9
198
247
267
sys/sys/callout.h
91

As in D59457, I think it'd be better to provide a helper macro in some central place, so that other consumers do not need to duplicate the selector which extracts the lock_object pointer.

Here, such a macro does not eliminate much code, but it'd still be a bit cleaner IMHO.

  • Manual page fixes.
  • Use lk2lo().
This revision now requires review to proceed.Mon, Sep 7, 5:38 PM
This revision is now accepted and ready to land.Mon, Sep 7, 7:09 PM
This revision was automatically updated to reflect the committed changes.