Page MenuHomeFreeBSD

linuxkpi: Add atomic_dec_and_mutex_lock
ClosedPublic

Authored by manu on May 15 2020, 9:24 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Mar 28, 10:23 PM
Unknown Object (File)
Feb 9 2024, 8:52 PM
Unknown Object (File)
Jan 23 2024, 5:37 AM
Unknown Object (File)
Dec 14 2023, 11:07 AM
Unknown Object (File)
Dec 11 2023, 3:11 AM
Unknown Object (File)
Dec 7 2023, 3:33 PM
Unknown Object (File)
Dec 1 2023, 3:20 PM
Unknown Object (File)
Oct 26 2023, 1:12 AM
Subscribers

Details

Summary

This function decrement the counter and if the result is 0 it acquires
the mutex and returns 1, if not it simply returns 0.
Needed by DRM from Linux v5.3

Sponsored-by: The FreeBSD Foundation

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

manu requested review of this revision.May 15 2020, 9:24 AM
This revision was not accepted when it landed; it landed in state Needs Review.May 17 2020, 8:09 PM
This revision was automatically updated to reflect the committed changes.
head/sys/compat/linuxkpi/common/include/linux/mutex.h
129 ↗(On Diff #71891)

Try to follow BSD style. Linebreak after int, before atomic_ .