Lines Matching full:private

113 /// Trait implemented by the private data of an open misc device.
121 /// The returned pointer will be stored as the private data for the file.
211 // SAFETY: The open call of a file can access the private data.
214 // SAFETY: This is a miscdevice, so `misc_open()` set the private data to a pointer to the
230 // This overwrites the private data with the value specified by the user, changing the type
231 // of this file's private data. All future accesses to the private data is performed by
232 // other fops_* methods in this file, which all correctly cast the private data to the new
235 // SAFETY: The open call of a file can access the private data.
246 // SAFETY: The release call of a file owns the private data.
247 let private = unsafe { (*file).private_data };
248 // SAFETY: The release call of a file owns the private data.
249 let ptr = unsafe { <T::Ptr as ForeignOwnable>::from_foreign(private) };
307 // SAFETY: The mmap call of a file can access the private data.
308 let private = unsafe { (*file).private_data };
312 let device = unsafe { <T::Ptr as ForeignOwnable>::borrow(private.cast()) };
330 // SAFETY: The ioctl call of a file can access the private data.
331 let private = unsafe { (*file).private_data };
332 // SAFETY: Ioctl calls can borrow the private data of the file.
333 let device = unsafe { <T::Ptr as ForeignOwnable>::borrow(private) };
355 // SAFETY: The compat ioctl call of a file can access the private data.
356 let private = unsafe { (*file).private_data };
357 // SAFETY: Ioctl calls can borrow the private data of the file.
358 let device = unsafe { <T::Ptr as ForeignOwnable>::borrow(private) };
376 // SAFETY: The release call of a file owns the private data.
377 let private = unsafe { (*file).private_data };
378 // SAFETY: Ioctl calls can borrow the private data of the file.
379 let device = unsafe { <T::Ptr as ForeignOwnable>::borrow(private) };