Page MenuHomeFreeBSD

callout: provide callout_init_lock()
ClosedPublic

Authored by glebius on Sat, Sep 5, 5:50 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Sep 26, 1:38 AM
Unknown Object (File)
Fri, Sep 25, 1:43 AM
Unknown Object (File)
Thu, Sep 24, 10:26 PM
Unknown Object (File)
Thu, Sep 24, 8:10 AM
Unknown Object (File)
Thu, Sep 24, 6:37 AM
Unknown Object (File)
Thu, Sep 24, 6:37 AM
Unknown Object (File)
Thu, Sep 24, 6:17 AM
Unknown Object (File)
Thu, Sep 24, 6:08 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 76598
Build 73481: 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–199
247
267–268
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.