linux kernel - how to init rwlock_t -


i writing linux kernel module, , can't find way initialise read-write lock. prefer static init.

when try using rw_lock_unlocked, compiler tells me not defined.

rwlock_t lock = rw_lock_unlocked; 

use the source, luke:

define_rwlock(lock); 

Comments

Popular posts from this blog

c - CUDA code not processing if block properly -

Android Capture Image From Camera -

amazon web services - The request could not be satisfied in while using <alphaNumeric-string>.cloudFront.net -