Lines Matching full:private

106 /// Trait implemented by the private data of an open misc device.
114 /// The returned pointer will be stored as the private data for the file.
178 // SAFETY: The open call of a file can access the private data. in open()
181 // SAFETY: This is a miscdevice, so `misc_open()` set the private data to a pointer to the in open()
197 // This overwrites the private data with the value specified by the user, changing the type in open()
198 // of this file's private data. All future accesses to the private data is performed by in open()
199 // other fops_* methods in this file, which all correctly cast the private data to the new in open()
202 // SAFETY: The open call of a file can access the private data. in open()
213 // SAFETY: The release call of a file owns the private data. in release()
214 let private = unsafe { (*file).private_data }; in release() localVariable
215 // SAFETY: The release call of a file owns the private data. in release()
216 let ptr = unsafe { <T::Ptr as ForeignOwnable>::from_foreign(private) }; in release()
230 // SAFETY: The ioctl call of a file can access the private data. in ioctl()
231 let private = unsafe { (*file).private_data }; in ioctl() localVariable
232 // SAFETY: Ioctl calls can borrow the private data of the file. in ioctl()
233 let device = unsafe { <T::Ptr as ForeignOwnable>::borrow(private) }; in ioctl()
255 // SAFETY: The compat ioctl call of a file can access the private data. in compat_ioctl()
256 let private = unsafe { (*file).private_data }; in compat_ioctl() localVariable
257 // SAFETY: Ioctl calls can borrow the private data of the file. in compat_ioctl()
258 let device = unsafe { <T::Ptr as ForeignOwnable>::borrow(private) }; in compat_ioctl()
276 // SAFETY: The release call of a file owns the private data. in show_fdinfo()
277 let private = unsafe { (*file).private_data }; in show_fdinfo() localVariable
278 // SAFETY: Ioctl calls can borrow the private data of the file. in show_fdinfo()
279 let device = unsafe { <T::Ptr as ForeignOwnable>::borrow(private) }; in show_fdinfo()