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.
211 // SAFETY: The open call of a file can access the private data. in fops_open()
214 // SAFETY: This is a miscdevice, so `misc_open()` set the private data to a pointer to the in fops_open()
229 // This overwrites the private data with the value specified by the user, changing the type of in fops_open()
230 // this file's private data. All future accesses to the private data is performed by other in fops_open()
231 // fops_* methods in this file, which all correctly cast the private data to the new type. in fops_open()
233 // SAFETY: The open call of a file can access the private data. in fops_open()
247 // SAFETY: The release call of a file owns the private data. in fops_release()
248 let private = unsafe { (*file).private_data }; in fops_release() localVariable
249 // SAFETY: The release call of a file owns the private data. in fops_release()
250 let ptr = unsafe { <T::Ptr as ForeignOwnable>::from_foreign(private) }; in fops_release()
268 // SAFETY: The ioctl call of a file can access the private data. in fops_ioctl()
269 let private = unsafe { (*file).private_data }; in fops_ioctl() localVariable
270 // SAFETY: Ioctl calls can borrow the private data of the file. in fops_ioctl()
271 let device = unsafe { <T::Ptr as ForeignOwnable>::borrow(private) }; in fops_ioctl()
293 // SAFETY: The compat ioctl call of a file can access the private data. in fops_compat_ioctl()
294 let private = unsafe { (*file).private_data }; in fops_compat_ioctl() localVariable
295 // SAFETY: Ioctl calls can borrow the private data of the file. in fops_compat_ioctl()
296 let device = unsafe { <T::Ptr as ForeignOwnable>::borrow(private) }; in fops_compat_ioctl()
317 // SAFETY: The release call of a file owns the private data. in fops_show_fdinfo()
318 let private = unsafe { (*file).private_data }; in fops_show_fdinfo() localVariable
319 // SAFETY: Ioctl calls can borrow the private data of the file. in fops_show_fdinfo()
320 let device = unsafe { <T::Ptr as ForeignOwnable>::borrow(private) }; in fops_show_fdinfo()