Lines Matching refs:KObjectState
54 fn kobj_state(&self) -> RwLockReadGuard<KObjectState>; in kobj_state() argument
56 fn kobj_state_mut(&self) -> RwLockWriteGuard<KObjectState>; in kobj_state_mut() argument
58 fn set_kobj_state(&self, state: KObjectState); in set_kobj_state() argument
63 pub fn update_kobj_state(&self, insert: Option<KObjectState>, remove: Option<KObjectState>) { in update_kobj_state() argument
64 let insert = insert.unwrap_or(KObjectState::empty()); in update_kobj_state()
65 let remove = remove.unwrap_or(KObjectState::empty()); in update_kobj_state()
101 pub struct KObjectState: u32 {
111 pub struct LockedKObjectState(RwLock<KObjectState>);
114 pub fn new(state: Option<KObjectState>) -> LockedKObjectState { in new()
115 let state = state.unwrap_or(KObjectState::empty()); in new()
121 type Target = RwLock<KObjectState>;
221 kobj.update_kobj_state(Some(KObjectState::IN_SYSFS), None); in add_kobj()
256 kobj.update_kobj_state(None, Some(KObjectState::IN_SYSFS)); in remove_kobj()