spin_lock_claim_unused() function
Claim a free spin lock
Syntax
int spin_lock_claim_unused(bool required); Arguments
required
if true the function will panic if none are available
Return value
the spin lock number or -1 if required was false, and none were free
spin_lock_claim_unused() is called by 2 functions and calls 1 function:
![]()
spin_lock_claim_unused()
spin_lock_claim_unused():
![]()
spin_lock_claim_unused()