Page MenuHomeFreeBSD

linuxkpi: Add macros for might_lock_nested() and lockdep_(re/un/)pin_lock()
ClosedPublic

Authored by nc on Jun 9 2021, 6:23 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Dec 27, 6:43 PM
Unknown Object (File)
Dec 9 2024, 7:14 PM
Unknown Object (File)
Nov 29 2024, 9:45 PM
Unknown Object (File)
Nov 24 2024, 9:48 PM
Unknown Object (File)
Nov 24 2024, 2:31 AM
Unknown Object (File)
Nov 23 2024, 5:12 PM
Unknown Object (File)
Nov 9 2024, 2:32 AM
Unknown Object (File)
Oct 26 2024, 3:03 AM

Diff Detail

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

Event Timeline

nc requested review of this revision.Jun 9 2021, 6:23 PM

Please explain what they should do and why it's while (0) for us.

Technically, from what I understand, these are macros to locks in the kernel for scheduling purposes, but as with other macros we aren't doing anything with them so we just use "do {} while (0)".

This revision is now accepted and ready to land.Jun 9 2021, 8:38 PM
In D30710#690140, @nc wrote:

Technically, from what I understand, these are macros to locks in the kernel for scheduling purposes, but as with other macros we aren't doing anything with them so we just use "do {} while (0)".

This should be in the commit message (and in the review message).