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");
121 description: "Rust misc device sample",
133 pr_info!("Initialising Rust Misc Device Sample\n"); in init()
136 name: c_str!("rust-misc-device"), in init()
160 fn open(_file: &File, misc: &MiscDeviceRegistration<Self>) -> Result<Pin<KBox<Self>>> { in open()
161 let dev = ARef::from(misc.device()); in open()
163 dev_info!(dev, "Opening Rust Misc Device Sample\n"); in open()
177 dev_info!(me.dev, "IOCTLing Rust Misc Device Sample\n"); in ioctl()
198 dev_info!(self.dev, "Exiting the Rust Misc Device Sample\n"); in drop()
235 dev_info!(self.dev, "-> Hello from the Rust Misc Device\n"); in hello()