Home
last modified time | relevance | path

Searched refs:Option (Results 1 – 25 of 258) sorted by relevance

1234567891011

/DragonOS/kernel/crates/bitmap/src/
H A Dtraits.rs11 fn first_index(bits: &Self) -> Option<usize>; in first_index()
12 fn first_false_index(bits: &Self) -> Option<usize>; in first_false_index()
13 fn last_index(bits: &Self) -> Option<usize>; in last_index()
14 fn last_false_index(bits: &Self) -> Option<usize>; in last_false_index()
15 fn next_index(bits: &Self, index: usize) -> Option<usize>; in next_index()
16 fn next_false_index(bits: &Self, index: usize) -> Option<usize>; in next_false_index()
17 fn prev_index(bits: &Self, index: usize) -> Option<usize>; in prev_index()
18 fn prev_false_index(bits: &Self, index: usize) -> Option<usize>; in prev_false_index()
60 fn first_index(bits: &Self) -> Option<usize> {
69 fn first_false_index(bits: &Self) -> Option<usize> {
[all …]
H A Dstatic_bitmap.rs44 fn get(&self, index: usize) -> Option<bool> { in get()
49 fn set(&mut self, index: usize, value: bool) -> Option<bool> { in set()
64 fn first_index(&self) -> Option<usize> { in first_index()
69 fn first_false_index(&self) -> Option<usize> { in first_false_index()
74 fn last_index(&self) -> Option<usize> { in last_index()
79 fn last_false_index(&self) -> Option<usize> { in last_false_index()
84 fn next_index(&self, index: usize) -> Option<usize> { in next_index()
89 fn next_false_index(&self, index: usize) -> Option<usize> { in next_false_index()
94 fn prev_index(&self, index: usize) -> Option<usize> { in prev_index()
99 fn prev_false_index(&self, index: usize) -> Option<usize> { in prev_false_index()
H A Dalloc_bitmap.rs33 fn get(&self, index: usize) -> Option<bool> { in get()
38 fn set(&mut self, index: usize, value: bool) -> Option<bool> { in set()
53 fn first_index(&self) -> Option<usize> { in first_index()
58 fn first_false_index(&self) -> Option<usize> { in first_false_index()
63 fn last_index(&self) -> Option<usize> { in last_index()
68 fn last_false_index(&self) -> Option<usize> { in last_false_index()
73 fn next_index(&self, index: usize) -> Option<usize> { in next_index()
78 fn next_false_index(&self, index: usize) -> Option<usize> { in next_false_index()
83 fn prev_index(&self, index: usize) -> Option<usize> { in prev_index()
88 fn prev_false_index(&self, index: usize) -> Option<usize> { in prev_false_index()
/DragonOS/user/apps/user-manage/src/check/
H A Dinfo.rs31 pub home: Option<String>,
38 pub groups: Option<Vec<String>>,
39 pub new_comment: Option<String>,
40 pub new_home: Option<String>,
41 pub new_gid: Option<String>,
42 pub new_group: Option<String>,
43 pub new_name: Option<String>,
44 pub new_shell: Option<String>,
45 pub new_uid: Option<String>,
60 pub passwd: Option<String>,
[all …]
/DragonOS/kernel/src/driver/open_firmware/
H A Ddevice_node.rs21 full_name: Option<&'static str>,
22 full_name_allocated: Option<String>,
32 sibling: Option<Weak<DeviceNode>>,
33 private_data: Option<Arc<dyn DeviceNodePrivateData>>,
39 full_name: Option<&'static str>, in new()
40 full_name_allocated: Option<String>, in new()
41 ) -> Option<Arc<Self>> { in new()
69 pub fn parent(&self) -> Option<Arc<DeviceNode>> { in parent()
85 pub fn sibling(&self) -> Option<Arc<DeviceNode>> { in sibling()
93 pub fn private_data(&self) -> Option<Arc<dyn DeviceNodePrivateData>> { in private_data()
[all …]
/DragonOS/kernel/src/driver/base/
H A Dkobject.rs30 fn set_inode(&self, inode: Option<Arc<KernFSInode>>); in set_inode()
33 fn inode(&self) -> Option<Arc<KernFSInode>>; in inode()
35 fn parent(&self) -> Option<Weak<dyn KObject>>; in parent()
38 fn set_parent(&self, parent: Option<Weak<dyn KObject>>); in set_parent()
41 fn kset(&self) -> Option<Arc<KSet>>; in kset()
44 fn set_kset(&self, kset: Option<Arc<KSet>>); in set_kset()
46 fn kobj_type(&self) -> Option<&'static dyn KObjType>; in kobj_type()
48 fn set_kobj_type(&self, ktype: Option<&'static dyn KObjType>); in set_kobj_type()
63 pub fn update_kobj_state(&self, insert: Option<KObjectState>, remove: Option<KObjectState>) { in update_kobj_state()
80 pub kern_inode: Option<Arc<KernFSInode>>,
[all …]
H A Dkset.rs75 parent_kobj: Option<Arc<dyn KObject>>, in new_and_add()
76 join_kset: Option<Arc<KSet>>, in new_and_add()
91 pub fn register(&self, join_kset: Option<Arc<KSet>>) -> Result<(), SystemError> { in register()
154 fn inode(&self) -> Option<Arc<KernFSInode>> { in inode()
158 fn set_inode(&self, inode: Option<Arc<KernFSInode>>) { in set_inode()
162 fn parent(&self) -> Option<Weak<dyn KObject>> { in parent()
166 fn set_parent(&self, parent: Option<Weak<dyn KObject>>) { in set_parent()
178 fn kobj_type(&self) -> Option<&'static dyn KObjType> { in kobj_type()
182 fn set_kobj_type(&self, ktype: Option<&'static dyn KObjType>) { in set_kobj_type()
186 fn kset(&self) -> Option<Arc<KSet>> { in kset()
[all …]
H A Dcpu.rs155 fn set_bus(&self, bus: Option<Weak<dyn Bus>>) { in set_bus()
159 fn bus(&self) -> Option<Weak<dyn Bus>> { in bus()
163 fn driver(&self) -> Option<Arc<dyn Driver>> { in driver()
167 fn set_driver(&self, _driver: Option<Weak<dyn Driver>>) { in set_driver()
187 fn set_class(&self, _class: Option<Weak<dyn Class>>) { in set_class()
191 fn dev_parent(&self) -> Option<Weak<dyn Device>> { in dev_parent()
195 fn set_dev_parent(&self, dev_parent: Option<Weak<dyn Device>>) { in set_dev_parent()
199 fn attribute_groups(&self) -> Option<&'static [&'static dyn AttributeGroup]> { in attribute_groups()
209 fn set_inode(&self, inode: Option<Arc<KernFSInode>>) { in set_inode()
213 fn inode(&self) -> Option<Arc<KernFSInode>> { in inode()
[all …]
H A Dsubsys.rs36 bus: SpinLock<Option<Weak<dyn Bus>>>,
38 class: SpinLock<Option<Weak<dyn Class>>>,
51 devices_kset: Option<Arc<KSet>>,
53 drivers_kset: Option<Arc<KSet>>,
68 bus: Option<Weak<dyn Bus>>, in new()
69 class: Option<Weak<dyn Class>>, in new()
96 pub fn bus(&self) -> Option<Weak<dyn Bus>> { in bus()
100 pub fn set_bus(&self, bus: Option<Weak<dyn Bus>>) { in set_bus()
106 pub fn class(&self) -> Option<Weak<dyn Class>> { in class()
116 pub fn set_class(&self, class: Option<Weak<dyn Class>>) { in set_class()
[all …]
/DragonOS/kernel/src/driver/pci/test/
H A Dpt_device.rs102 fn attribute_groups(&self) -> Option<&'static [&'static dyn AttributeGroup]> { in attribute_groups()
106 fn bus(&self) -> Option<Weak<dyn Bus>> { in bus()
110 fn class(&self) -> Option<Arc<dyn Class>> { in class()
120 fn driver(&self) -> Option<Arc<dyn Driver>> { in driver()
140 fn set_bus(&self, bus: Option<Weak<dyn Bus>>) { in set_bus()
148 fn set_class(&self, class: Option<Weak<dyn Class>>) { in set_class()
152 fn set_driver(&self, driver: Option<Weak<dyn Driver>>) { in set_driver()
160 fn dev_parent(&self) -> Option<Weak<dyn Device>> { in dev_parent()
164 fn set_dev_parent(&self, dev_parent: Option<Weak<dyn Device>>) { in set_dev_parent()
174 fn set_inode(&self, inode: Option<Arc<KernFSInode>>) { in set_inode()
[all …]
H A Dpt_driver.rs53 fn locked_dynid_list(&self) -> Option<Vec<Arc<PciDeviceID>>> { in locked_dynid_list()
83 fn id_table(&self) -> Option<IdTable> { in id_table()
106 fn set_bus(&self, bus: Option<Weak<dyn Bus>>) { in set_bus()
110 fn bus(&self) -> Option<Weak<dyn Bus>> { in bus()
120 fn set_inode(&self, inode: Option<Arc<KernFSInode>>) { in set_inode()
124 fn inode(&self) -> Option<Arc<KernFSInode>> { in inode()
128 fn parent(&self) -> Option<Weak<dyn KObject>> { in parent()
132 fn set_parent(&self, parent: Option<Weak<dyn KObject>>) { in set_parent()
136 fn kset(&self) -> Option<Arc<KSet>> { in kset()
140 fn set_kset(&self, kset: Option<Arc<KSet>>) { in set_kset()
[all …]
/DragonOS/kernel/src/driver/input/serio/i8042/
H A Di8042_ports.rs65 fn bus(&self) -> Option<Weak<dyn Bus>> { in bus()
69 fn set_bus(&self, bus: Option<Weak<dyn Bus>>) { in set_bus()
73 fn set_class(&self, class: Option<Weak<dyn Class>>) { in set_class()
77 fn class(&self) -> Option<Arc<dyn Class>> { in class()
86 fn driver(&self) -> Option<Arc<dyn Driver>> { in driver()
90 fn set_driver(&self, driver: Option<Weak<dyn Driver>>) { in set_driver()
108 fn dev_parent(&self) -> Option<Weak<dyn Device>> { in dev_parent()
112 fn set_dev_parent(&self, parent: Option<Weak<dyn Device>>) { in set_dev_parent()
122 fn set_inode(&self, inode: Option<Arc<KernFSInode>>) { in set_inode()
126 fn inode(&self) -> Option<Arc<KernFSInode>> { in inode()
[all …]
H A Di8042_device.rs69 fn bus(&self) -> Option<Weak<dyn Bus>> { in bus()
73 fn set_bus(&self, bus: Option<Weak<dyn Bus>>) { in set_bus()
76 fn class(&self) -> Option<Arc<dyn Class>> { in class()
85 fn set_class(&self, class: Option<Weak<dyn Class>>) { in set_class()
89 fn driver(&self) -> Option<Arc<dyn Driver>> { in driver()
93 fn set_driver(&self, driver: Option<Weak<dyn Driver>>) { in set_driver()
111 fn dev_parent(&self) -> Option<Weak<dyn Device>> { in dev_parent()
115 fn set_dev_parent(&self, dev_parent: Option<Weak<dyn Device>>) { in set_dev_parent()
125 fn set_inode(&self, inode: Option<Arc<KernFSInode>>) { in set_inode()
129 fn inode(&self) -> Option<Arc<KernFSInode>> { in inode()
[all …]
H A Di8042_driver.rs55 ktype: Option<&'static dyn KObjType>,
56 kset: Option<Arc<KSet>>,
57 parent: Option<Weak<dyn KObject>>,
58 kernfs_inode: Option<Arc<KernFSInode>>,
60 bus: Option<Weak<dyn Bus>>,
102 fn id_table(&self) -> Option<IdTable> { in id_table()
125 fn set_bus(&self, bus: Option<Weak<dyn Bus>>) { in set_bus()
129 fn bus(&self) -> Option<Weak<dyn Bus>> { in bus()
139 fn set_inode(&self, inode: Option<Arc<KernFSInode>>) { in set_inode()
143 fn inode(&self) -> Option<Arc<KernFSInode>> { in inode()
[all …]
/DragonOS/kernel/src/driver/serial/serial8250/
H A Dmod.rs46 static mut SERIAL8250_ISA_DEVICES: Option<Arc<Serial8250ISADevices>> = None;
47 static mut SERIAL8250_ISA_DRIVER: Option<Arc<Serial8250ISADriver>> = None;
186 fn device(&self) -> Option<Arc<Serial8250ISADevices>> { in device()
189 fn set_device(&self, device: Option<&Arc<Serial8250ISADevices>>); in set_device()
254 fn bus(&self) -> Option<Weak<dyn Bus>> { in bus()
258 fn set_bus(&self, bus: Option<Weak<dyn Bus>>) { in set_bus()
270 fn driver(&self) -> Option<Arc<dyn Driver>> { in driver()
274 fn set_driver(&self, driver: Option<Weak<dyn Driver>>) { in set_driver()
290 fn set_class(&self, _class: Option<Weak<dyn Class>>) { in set_class()
294 fn dev_parent(&self) -> Option<Weak<dyn Device>> { in dev_parent()
[all …]
/DragonOS/kernel/src/driver/pci/
H A Draw_device.rs35 name: Option<String>,
110 fn attribute_groups(&self) -> Option<&'static [&'static dyn AttributeGroup]> { in attribute_groups()
114 fn bus(&self) -> Option<Weak<dyn Bus>> { in bus()
118 fn class(&self) -> Option<Arc<dyn Class>> { in class()
128 fn driver(&self) -> Option<Arc<dyn Driver>> { in driver()
148 fn set_bus(&self, bus: Option<Weak<dyn Bus>>) { in set_bus()
154 fn set_class(&self, class: Option<Weak<dyn Class>>) { in set_class()
158 fn set_driver(&self, driver: Option<Weak<dyn Driver>>) { in set_driver()
166 fn dev_parent(&self) -> Option<Weak<dyn Device>> { in dev_parent()
170 fn set_dev_parent(&self, dev_parent: Option<Weak<dyn Device>>) { in set_dev_parent()
[all …]
H A Ddevice.rs107 pub fn new(parent: Option<Weak<dyn KObject>>) -> Arc<Self> { in new()
136 fn parent(&self) -> Option<alloc::sync::Weak<dyn KObject>> { in parent()
140 fn inode(&self) -> Option<Arc<KernFSInode>> { in inode()
144 fn set_inode(&self, inode: Option<Arc<KernFSInode>>) { in set_inode()
148 fn kobj_type(&self) -> Option<&'static dyn KObjType> { in kobj_type()
152 fn set_kobj_type(&self, ktype: Option<&'static dyn KObjType>) { in set_kobj_type()
156 fn kset(&self) -> Option<Arc<KSet>> { in kset()
182 fn set_kset(&self, kset: Option<Arc<KSet>>) { in set_kset()
186 fn set_parent(&self, parent: Option<Weak<dyn KObject>>) { in set_parent()
200 fn bus(&self) -> Option<Weak<dyn Bus>> { in bus()
[all …]
/DragonOS/kernel/src/driver/block/
H A Dvirtio_blk.rs51 static mut VIRTIO_BLK_DRIVER: Option<Arc<VirtIOBlkDriver>> = None;
61 pub fn virtio_blk_0() -> Option<Arc<VirtIOBlkDevice>> { in virtio_blk_0()
72 dev_parent: Option<Arc<dyn Device>>, in virtio_blk()
85 static mut VIRTIOBLK_MANAGER: Option<VirtIOBlkManager> = None;
106 devname: [Option<BlockDevName>; VirtIOBlkManager::MAX_DEVICES],
125 pub fn alloc_id(&self) -> Option<BlockDevName> { in alloc_id()
166 pub fn new(transport: VirtIOTransport, dev_id: Arc<DeviceId>) -> Option<Arc<Self>> { in new()
292 name: Option<String>,
293 virtio_index: Option<VirtIODeviceIndex>,
296 irq: Option<IrqNumber>,
[all …]
/DragonOS/kernel/src/exception/
H A Dirqdesc.rs55 static_data: Option<&dyn IrqHandlerData>, in handle()
56 dynamic_data: Option<Arc<dyn IrqHandlerData>>, in handle()
78 handler: RwLock<Option<&'static dyn IrqFlowHandler>>,
88 pub fn new(irq: IrqNumber, name: Option<String>, irqd_flags: IrqStatus) -> Arc<Self> { in new()
174 pub fn handler(&self) -> Option<&'static dyn IrqFlowHandler> { in handler()
224 pub fn name(&self) -> Option<String> { in name()
361 name: Option<String>,
362 parent_irq: Option<IrqNumber>,
371 kern_inode: Option<Arc<KernFSInode>>,
372 kset: Option<Arc<KSet>>,
[all …]
/DragonOS/kernel/src/driver/net/
H A Dvirtio_net.rs55 static mut VIRTIO_NET_DRIVER: Option<Arc<VirtIONetDriver>> = None;
80 name: Option<String>,
81 virtio_index: Option<VirtIODeviceIndex>,
93 pub fn new(transport: VirtIOTransport, dev_id: Arc<DeviceId>) -> Option<Arc<Self>> { in new()
139 fn set_inode(&self, inode: Option<Arc<KernFSInode>>) { in set_inode()
143 fn inode(&self) -> Option<Arc<KernFSInode>> { in inode()
147 fn parent(&self) -> Option<Weak<dyn KObject>> { in parent()
151 fn set_parent(&self, parent: Option<Weak<dyn KObject>>) { in set_parent()
155 fn kset(&self) -> Option<Arc<KSet>> { in kset()
159 fn set_kset(&self, kset: Option<Arc<KSet>>) { in set_kset()
[all …]
/DragonOS/kernel/src/driver/input/ps2_mouse/
H A Dps_mouse_driver.rs51 _static_data: Option<&dyn IrqHandlerData>, in handle()
52 _dev_id: Option<Arc<dyn IrqHandlerData>>, in handle()
66 static mut PS2_MOUSE_DRIVER: Option<Arc<Ps2MouseDriver>> = None;
108 let device: Option<&Ps2MouseDevice> = guard.devices[0] in process_packet()
117 ktype: Option<&'static dyn KObjType>,
118 kset: Option<Arc<KSet>>,
119 parent: Option<Weak<dyn KObject>>,
120 kernfs_inode: Option<Arc<KernFSInode>>,
122 bus: Option<Weak<dyn Bus>>,
127 fn id_table(&self) -> Option<IdTable> { in id_table()
[all …]
/DragonOS/kernel/src/driver/rtc/
H A Dsysfs.rs57 class_ops: Option<&'static dyn RtcClassOps>,
91 pub fn class_ops(&self) -> Option<&'static dyn RtcClassOps> { in class_ops()
129 fn set_bus(&self, bus: Option<Weak<dyn Bus>>) { in set_bus()
133 fn bus(&self) -> Option<Weak<dyn Bus>> { in bus()
137 fn set_class(&self, class: Option<Weak<dyn Class>>) { in set_class()
141 fn class(&self) -> Option<Arc<dyn Class>> { in class()
148 fn driver(&self) -> Option<Arc<dyn Driver>> { in driver()
155 fn set_driver(&self, driver: Option<Weak<dyn Driver>>) { in set_driver()
174 fn attribute_groups(&self) -> Option<&'static [&'static dyn AttributeGroup]> { in attribute_groups()
178 fn dev_parent(&self) -> Option<Weak<dyn Device>> { in dev_parent()
[all …]
/DragonOS/kernel/src/driver/video/fbdev/base/
H A Dfbmem.rs46 static mut CLASS_GRAPHICS_INSTANCE: Option<Arc<GraphicsClass>> = None;
56 pub fn sys_class_graphics_instance() -> Option<&'static Arc<GraphicsClass>> { in sys_class_graphics_instance()
104 fn dev_kobj(&self) -> Option<Arc<dyn KObject>> { in dev_kobj()
126 registered_fbs: [Option<Arc<dyn FrameBuffer>>; FrameBufferManager::FB_MAX],
185 pub fn find_fb_by_id(&self, id: FbId) -> Result<Option<Arc<dyn FrameBuffer>>, SystemError> { in find_fb_by_id()
194 fn generate_fb_id(&self) -> Option<FbId> { in generate_fb_id()
242 pub fn framebuffer(&self) -> Option<Arc<dyn FrameBuffer>> { in framebuffer()
270 device_inode_fs: Option<Weak<DevFS>>,
279 fn set_inode(&self, inode: Option<Arc<KernFSInode>>) { in set_inode()
283 fn inode(&self) -> Option<Arc<KernFSInode>> { in inode()
[all …]
/DragonOS/kernel/src/driver/firmware/efi/
H A Dmod.rs39 pub runtime_paddr: Option<PhysAddr>,
41 pub runtime_service_version: Option<uefi_raw::table::Revision>,
42 pub dragonstub_load_info: Option<DragonStubPayloadEFI>,
44 pub memory_attribute_table_paddr: Option<PhysAddr>,
46 pub memreserve_table_paddr: Option<PhysAddr>,
48 pub esrt_table_paddr: Option<PhysAddr>,
73 pub fn kernel_load_info(&self) -> Option<DragonStubPayloadEFI> { in kernel_load_info()
/DragonOS/kernel/src/driver/base/device/
H A Dmod.rs54 static mut DEVICE_MANAGER: Option<DeviceManager> = None;
74 static mut DEVICES_KSET_INSTANCE: Option<Arc<KSet>> = None;
76 static mut DEV_KSET_INSTANCE: Option<Arc<KSet>> = None;
78 static mut DEV_BLOCK_KSET_INSTANCE: Option<Arc<KSet>> = None;
80 static mut DEV_CHAR_KSET_INSTANCE: Option<Arc<KSet>> = None;
83 static mut DEVICES_VIRTUAL_KSET_INSTANCE: Option<Arc<KSet>> = None;
158 fn bus(&self) -> Option<Weak<dyn Bus>> { in bus()
167 fn set_bus(&self, bus: Option<Weak<dyn Bus>>); in set_bus()
170 fn class(&self) -> Option<Arc<dyn Class>> { in class()
177 fn set_class(&self, class: Option<Weak<dyn Class>>); in set_class()
[all …]

1234567891011