Page MenuHomeFreeBSD

Implement m_snd_tag_wait()
AbandonedPublic

Authored by hselasky on Sep 12 2019, 5:24 PM.
Tags
None
Referenced Files
Unknown Object (File)
Jan 1 2024, 1:29 AM
Unknown Object (File)
Dec 21 2023, 2:08 AM
Unknown Object (File)
Dec 1 2023, 12:45 PM
Unknown Object (File)
Nov 30 2023, 6:46 AM
Unknown Object (File)
Nov 28 2023, 6:48 AM
Unknown Object (File)
Nov 25 2023, 3:34 AM
Unknown Object (File)
Nov 24 2023, 3:23 PM
Unknown Object (File)
Nov 22 2023, 9:22 PM
Subscribers

Details

Reviewers
jhb
slavash
kib
Summary

Implement function that will wait until the last send tag has been destroyed.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 26445

Event Timeline

Update as per Jeff's suggestion.

sys/sys/mbuf.h
1331

This function returns true if it successfully dropped a ref. So you cal m_snd_tag_destroy() on each deref except last, and then double drop ?

sys/sys/mbuf.h
1331

Note there is a "!" in the beginning. We only go into the "if" on the last reference and that is not dropped, and then we drop the ref and do the wakup, if needed.

not not = nothing.

refcount_wait() is expected to go away.