Lines Matching defs:open
113 /// Trait implemented by the private data of an open misc device.
122 fn open(_file: &File, _misc: &MiscDeviceRegistration<Self>) -> Result<Self::Ptr>;
204 unsafe extern "C" fn open(inode: *mut bindings::inode, raw_file: *mut bindings::file) -> c_int {
211 // SAFETY: The open call of a file can access the private data.
221 // * This underlying file is valid for (much longer than) the duration of `T::open`.
225 let ptr = match T::open(file, misc) {
235 // SAFETY: The open call of a file can access the private data.
309 // SAFETY: This is a Rust Miscdevice, so we call `into_foreign` in `open` and
392 open: Some(Self::open),