Home
last modified time | relevance | path

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

/DragonOS-0.1.9/kernel/src/exception/
Dmsi.rs80 msg: MsiMsg, field
105 msg: MsiMsg { in new()
118 pub fn set_msg(&self, msg: MsiMsg) { in set_msg()
119 self.inner.lock().msg = msg; in set_msg()
122 pub fn msg(&self) -> MsiMsg { in msg() method
123 self.inner.lock().msg in msg()
/DragonOS-0.1.9/kernel/src/common/
Dcompiler_attributes.h15 #define __compiletime_error(msg) __attribute__((__error__(msg))) argument
17 #define __compiletime_error(msg) argument
Dcompiler.h20 #define __compiletime_assert(condition, msg, prefix, suffix) … argument
28 … __compiletime_error(msg); \
39 #define complietime_assert(condition, msg) \ argument
40 __compiletime_assert(condition, msg, __compiletime_assert__, __COUNTER__)
/DragonOS-0.1.9/kernel/src/filesystem/procfs/
Dkmsg.rs53 pub fn push(&mut self, msg: LogMessage) { in push()
54 self.buffer.push(msg); in push()
83 for msg in self.buffer.iter() { in read_level()
84 if msg.level() == self.console_loglevel { in read_level()
85 data_level.append(&mut msg.to_string().as_bytes().to_owned()); in read_level()
143 for msg in self.buffer.iter() { in tobytes()
144 self.data.append(&mut msg.to_string().as_bytes().to_owned()); in tobytes()
/DragonOS-0.1.9/kernel/src/libs/intertrait/macros/src/
Dargs.rs17 let msg = format!("Unknown flag: {}", unknown); in from() localVariable
18 Err(Error::new_spanned(ident, msg)) in from()
43 let msg = format!("Duplicated flag: {}", ident); in parse() localVariable
44 return Err(Error::new_spanned(ident, msg)); in parse()
/DragonOS-0.1.9/kernel/src/arch/x86_64/driver/apic/
Dlapic_vector.rs88 fn irq_compose_msi_msg(&self, irq: &Arc<IrqData>, msg: &mut MsiMsg) { in irq_compose_msi_msg()
92 irq_msi_compose_msg(cfg, msg, false); in irq_compose_msi_msg()
182 pub(super) fn irq_msi_compose_msg(cfg: &HardwareIrqConfig, msg: &mut MsiMsg, dmar: bool) { in irq_msi_compose_msg()
183 *msg = MsiMsg::new_zeroed(); in irq_msi_compose_msg()
216 msg.address_hi = address_hi.into(); in irq_msi_compose_msg()
217 msg.address_lo = address_lo.into(); in irq_msi_compose_msg()
218 msg.data = arch_data.into(); in irq_msi_compose_msg()
/DragonOS-0.1.9/kernel/src/debug/
Dbug.h58 #define BUILD_BUG_ON_MSG(condition, msg) complietime_assert(!(condition), msg) argument
/DragonOS-0.1.9/kernel/src/driver/pci/
Dpci_irq.rs313 fn irq_install(&mut self, msg: PciIrqMsg) -> Result<u8, PciError> { in irq_install()
315 if msg.irq_common_message.irq_index as usize > irq_vector.len() { in irq_install()
317 msg.irq_common_message.irq_index, in irq_install()
325 return self.msix_install(msg); in irq_install()
328 return self.msi_install(msg); in irq_install()
344 fn msi_install(&mut self, msg: PciIrqMsg) -> Result<u8, PciError> { in msi_install()
358 self.irq_vector_mut().unwrap()[msg.irq_common_message.irq_index as usize]; in msi_install()
361 let common_msg = &msg.irq_common_message; in msi_install()
398 let trigger = match msg.irq_specific_message { in msi_install()
509 fn msix_install(&mut self, msg: PciIrqMsg) -> Result<u8, PciError> { in msix_install()
[all …]
/DragonOS-0.1.9/kernel/src/
Dlib.rs127 Some(msg) => { in panic()
128 println!("Message:\n\t{}", msg); in panic()
/DragonOS-0.1.9/kernel/src/net/
Dsyscall.rs302 pub fn recvmsg(fd: usize, msg: &mut MsgHdr, _flags: u32) -> Result<usize, SystemError> { in recvmsg()
304 let mut iovs = unsafe { IoVecs::from_user(msg.msg_iov, msg.msg_iovlen, true)? }; in recvmsg()
323 sockaddr_in.write_to_user(msg.msg_name, &mut msg.msg_namelen)?; in recvmsg()
/DragonOS-0.1.9/kernel/src/driver/virtio/
Dtransport_pci.rs149 let msg = PciIrqMsg { in new() localVariable
158 standard_device.irq_install(msg)?; in new()
/DragonOS-0.1.9/kernel/src/syscall/
Dmod.rs573 let msg = args[1] as *mut MsgHdr; in handle() localVariable
577 UserBufferWriter::new(msg, core::mem::size_of::<MsgHdr>(), frame.from_user())?; in handle()
580 let msg = &mut buffer[0]; in handle() localVariable
581 Self::recvmsg(args[0], msg, flags) in handle()
/DragonOS-0.1.9/kernel/src/driver/net/e1000e/
De1000e.rs232 let msg = PciIrqMsg { in new() localVariable
241 device.irq_install(msg)?; in new()