Lines Matching full:safety

34         // SAFETY: All zeros is valid for this C type.  in into_raw()
56 // SAFETY: It is allowed to call `misc_deregister` on a different thread from where you called
59 // SAFETY: All `&self` methods on this type are written to ensure that it is safe to call them in
68 // SAFETY: The initializer can write to the provided `slot`. in register()
71 // SAFETY: We just wrote the misc device options to the slot. The miscdevice will in register()
89 // SAFETY: This can only be called after a successful register(), which always in device()
101 // SAFETY: We know that the device is registered by the type invariants. in drop()
189 // SAFETY: All zeros is a valid value for `bindings::file_operations`. in create_vtable()
197 /// # Safety
205 // SAFETY: The pointers are valid and for a file being opened. in fops_open()
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()
219 // SAFETY: in fops_open()
233 // SAFETY: The open call of a file can access the private data. in fops_open()
239 /// # Safety
247 // SAFETY: The release call of a file owns the private data. in fops_release()
249 // SAFETY: The release call of a file owns the private data. in fops_release()
252 // SAFETY: in fops_release()
260 /// # Safety
268 // SAFETY: The ioctl call of a file can access the private data. in fops_ioctl()
270 // SAFETY: Ioctl calls can borrow the private data of the file. in fops_ioctl()
273 // SAFETY: in fops_ioctl()
284 /// # Safety
293 // SAFETY: The compat ioctl call of a file can access the private data. in fops_compat_ioctl()
295 // SAFETY: Ioctl calls can borrow the private data of the file. in fops_compat_ioctl()
298 // SAFETY: in fops_compat_ioctl()
309 /// # Safety
317 // SAFETY: The release call of a file owns the private data. in fops_show_fdinfo()
319 // SAFETY: Ioctl calls can borrow the private data of the file. in fops_show_fdinfo()
321 // SAFETY: in fops_show_fdinfo()
325 // SAFETY: The caller ensures that the pointer is valid and exclusive for the duration in which in fops_show_fdinfo()