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
Post a Comment