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) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -