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 -

oracle11g - get root domain from url Oracle sql regex_substr -

xcode - Swift Playground - Files are not readable -