Page MenuHomeFreeBSD

callout: provide callout_init_lock()
AcceptedPublic

Authored by glebius on Sat, Sep 5, 5:50 PM.
Tags
None
Referenced Files
F170965185: D59456.id.diff
Mon, Sep 7, 9:54 PM
F170933479: D59456.id186016.diff
Mon, Sep 7, 5:06 PM
F170933403: D59456.id186014.diff
Mon, Sep 7, 5:05 PM
F170932565: D59456.id186032.diff
Mon, Sep 7, 4:56 PM
F170932554: D59456.id186032.diff
Mon, Sep 7, 4:56 PM
F170918306: D59456.diff
Mon, Sep 7, 2:12 PM
F170918215: D59456.diff
Mon, Sep 7, 2:10 PM
F170915919: D59456.id185945.diff
Mon, Sep 7, 1:44 PM
Subscribers

Details

Reviewers
kib
markj
Group Reviewers
Src Committers
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