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)
Fri, Sep 11, 4:30 PM
Unknown Object (File)
Fri, Sep 11, 12:37 AM
Unknown Object (File)
Thu, Sep 10, 5:02 PM
Unknown Object (File)
Thu, Sep 10, 5:43 AM
Unknown Object (File)
Wed, Sep 9, 3:42 PM
Unknown Object (File)
Wed, Sep 9, 7:02 AM
Unknown Object (File)
Tue, Sep 8, 3:12 PM
Unknown Object (File)
Mon, Sep 7, 8:44 PM
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 Not Applicable
Unit
Tests Not Applicable

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

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