Home
last modified time | relevance | path

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

/DragonOS/kernel/src/filesystem/sysfs/
H A Dfile.rs28 bin_attribute: Option<Arc<dyn BinAttribute>>, field
37 bin_attribute: Option<Arc<dyn BinAttribute>>, in new()
39 if attribute.is_none() && bin_attribute.is_none() { in new()
42 if attribute.is_some() && bin_attribute.is_some() { in new()
50 bin_attribute, in new()
74 } else if let Some(bin_attribute) = self.bin_attribute.as_ref() { in callback_read()
77 return bin_attribute.read(kobj, buf, offset); in callback_read()
88 } else if let Some(bin_attribute) = self.bin_attribute.as_ref() { in callback_write()
91 return bin_attribute.write(kobj, buf, offset); in callback_write()