Lines Matching refs:KObject
26 pub trait KObject: Any + Send + Sync + Debug + CastFromSync { trait
35 fn parent(&self) -> Option<Weak<dyn KObject>>; in parent() argument
38 fn set_parent(&self, parent: Option<Weak<dyn KObject>>); in set_parent() argument
61 impl dyn KObject { implementation
71 impl DowncastArc for dyn KObject { implementation
81 pub parent: Option<Weak<dyn KObject>>,
87 pub fn get_parent_or_clear_weak(&mut self) -> Option<Weak<dyn KObject>> { in get_parent_or_clear_weak() argument
94 fn release(&self, _kobj: Arc<dyn KObject>) {} in release() argument
144 kobj: Arc<dyn KObject>, in show() argument
161 kobj: Arc<dyn KObject>, in store() argument
182 kobj: Arc<dyn KObject>, in init_and_add_kobj() argument
190 pub fn kobj_init(kobj: &Arc<dyn KObject>, kobj_type: Option<&'static dyn KObjType>) { in kobj_init() argument
195 kobj: Arc<dyn KObject>, in add_kobj() argument
202 kobj.set_parent(Some(Arc::downgrade(&(kset as Arc<dyn KObject>)))); in add_kobj()
225 fn create_dir(kobj: Arc<dyn KObject>) -> Result<(), SystemError> { in create_dir()
245 pub fn remove_kobj(kobj: Arc<dyn KObject>) { in remove_kobj() argument
270 fn release(&self, kobj: Arc<dyn KObject>) { in release() argument