Page MenuHomeFreeBSD

LinuxKPI: Add write_seqcount_invalidate() and seqprop_sequence()
ClosedPublic

Authored by wulf on Nov 28 2023, 9:11 PM.
Tags
None
Referenced Files
Unknown Object (File)
Nov 18 2024, 11:40 PM
Unknown Object (File)
Sep 23 2024, 8:59 PM
Unknown Object (File)
Sep 23 2024, 3:21 AM
Unknown Object (File)
Sep 22 2024, 3:49 PM
Unknown Object (File)
Sep 18 2024, 3:12 AM
Unknown Object (File)
Sep 4 2024, 5:08 PM
Unknown Object (File)
Sep 1 2024, 5:41 PM
Unknown Object (File)
Aug 31 2024, 11:43 PM

Details

Summary

functions to linux/seqlock.h

Sponsored by: Serenity Cyber Security, LLC
MFC after: 1 week

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

wulf requested review of this revision.Nov 28 2023, 9:11 PM
This revision is now accepted and ready to land.Nov 29 2023, 6:14 AM
bz requested changes to this revision.Dec 8 2023, 5:40 PM
bz added inline comments.
sys/compat/linuxkpi/common/include/linux/seqlock.h
92

I would put a comment there; almost wants sys/seqc.h integration?

187

Do you want seqc_read_notmodify()?

This revision now requires changes to proceed.Dec 8 2023, 5:40 PM

READ_ONCE -> atomic_load_int

sys/compat/linuxkpi/common/include/linux/seqlock.h
92

I do not understand what type comment and integration you expect? Move this code to sys/seqc.h and make write_seqcount_invalidate a wrapper?

187

No. It's relaxed version of seqc_read_notmodify()
I replaced READ_ONCE() with atomic_load() to make things clearer

Allow new functions to work with mutex-less seqcounts

This revision was not accepted when it landed; it landed in state Needs Review.Dec 24 2023, 8:24 AM
This revision was automatically updated to reflect the committed changes.