Lines Matching full:misc
5 //! Rust misc device sample.
27 /// printf("Opening /dev/rust-misc-device for reading and writing\n");
28 /// fd = open("/dev/rust-misc-device", O_RDWR);
90 /// printf("Closing /dev/rust-misc-device\n");
120 description: "Rust misc device sample",
132 pr_info!("Initialising Rust Misc Device Sample\n"); in init()
135 name: c_str!("rust-misc-device"), in init()
159 fn open(_file: &File, misc: &MiscDeviceRegistration<Self>) -> Result<Pin<KBox<Self>>> { in open()
160 let dev = ARef::from(misc.device()); in open()
162 dev_info!(dev, "Opening Rust Misc Device Sample\n"); in open()
176 dev_info!(me.dev, "IOCTLing Rust Misc Device Sample\n"); in ioctl()
197 dev_info!(self.dev, "Exiting the Rust Misc Device Sample\n"); in drop()
234 dev_info!(self.dev, "-> Hello from the Rust Misc Device\n"); in hello()