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()
167 /// # Safety
172 // SAFETY: The pointers are valid and for a file being opened. in open()
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()
187 // SAFETY: in open()
202 // SAFETY: The open call of a file can access the private data. in open()
208 /// # Safety
213 // SAFETY: The release call of a file owns the private data. in release()
215 // SAFETY: The release call of a file owns the private data. in release()
218 // SAFETY: in release()
226 /// # Safety
230 // SAFETY: The ioctl call of a file can access the private data. in ioctl()
232 // SAFETY: Ioctl calls can borrow the private data of the file. in ioctl()
235 // SAFETY: in ioctl()
246 /// # Safety
255 // SAFETY: The compat ioctl call of a file can access the private data. in compat_ioctl()
257 // SAFETY: Ioctl calls can borrow the private data of the file. in compat_ioctl()
260 // SAFETY: in compat_ioctl()
271 /// # Safety
276 // SAFETY: The release call of a file owns the private data. in show_fdinfo()
278 // SAFETY: Ioctl calls can borrow the private data of the file. in show_fdinfo()
280 // SAFETY: in show_fdinfo()
284 // SAFETY: The caller ensures that the pointer is valid and exclusive for the duration in in show_fdinfo()
312 // SAFETY: All zeros is a valid value for `bindings::file_operations`.