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++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

xcode - Swift Playground - Files are not readable -

jboss7.x - JBoss AS 7.3 vs 7.4 and differences -