Home
last modified time | relevance | path

Searched refs:attribute (Results 1 – 4 of 4) sorted by relevance

/DragonOS/kernel/src/filesystem/sysfs/
H A Dfile.rs26 attribute: Option<&'static dyn Attribute>, field
36 attribute: Option<&'static dyn Attribute>, in new()
39 if attribute.is_none() && bin_attribute.is_none() { in new()
42 if attribute.is_some() && bin_attribute.is_some() { in new()
49 attribute, in new()
56 pub fn attribute(&self) -> Option<&'static dyn Attribute> { in attribute() method
57 self.attribute in attribute()
61 if let Some(attribute) = self.attribute { in callback_read()
64 let len = attribute.show(kobj, buf)?; in callback_read()
84 if let Some(attribute) = self.attribute { in callback_write()
[all …]
/DragonOS/docs/kernel/filesystem/
H A Dkernfs.md18 …de。并且通过设置KernFSInode的PrivateData,使得KernFS能够根据Inode获取到其指向的KObject或者sysfs的attribute。并且在创建KernFSInode…
20 &emsp;&emsp;当发生回调时,KernFS会把回调信息、私有信息传入到回调函数中,让回调函数能够根据传入的信息,获取到对应的KObject或者sysfs的attribute,从而实现sysf…
/DragonOS/kernel/src/common/
H A Dhid.h110 …uint8_t attribute; // report field attribute. (2 = (Data,Var,Abs,No Wrap,Linear,Preferred State,No… member
/DragonOS/kernel/crates/intertrait/
H A DREADME.md82 For the type, the traits specified as arguments to the `#[cast_to(...)]` attribute are designated a…