Lines Matching full:safety

135 // SAFETY: We do not provide any operations on `Subsystem`.
138 // SAFETY: Ownership of `Subsystem` can safely be transferred to other threads.
155 // SAFETY: We initialized the required fields of `place.group` above.
164 // SAFETY: `place.su_mutex` is valid for use as a mutex.
179 // SAFETY: We initialized `this.subsystem` according to C API contract above.
189 // SAFETY: We registered `self.subsystem` in the initializer returned by `Self::new`.
191 // SAFETY: We initialized the mutex in `Subsystem::new`.
201 /// # Safety
208 /// # Safety
215 /// # Safety
222 // SAFETY: `Subsystem<Data>` embeds a field of type `bindings::config_group`
226 // SAFETY: By impl and function safety requirement this projection is in bounds.
231 // SAFETY: By impl and function safety requirement this projection is in bounds.
234 // SAFETY: By impl and function safety requirement, `opaque_ptr` and the
266 // SAFETY: It is safe to initialize a group once it has been zeroed.
277 // SAFETY: `Group<Data>` embeds a field of type `bindings::config_group`
282 // SAFETY: By impl and function safety requirements this field
290 // SAFETY: By impl and function safety requirement, `opaque_ptr` and
296 /// # Safety
308 // SAFETY: `this` is a valid pointer.
312 // SAFETY: By C API contact,`this` was returned from a call to
317 // SAFETY: By C API contract, `this` is a pointer to the
330 /// # Safety
347 // SAFETY: By function safety requirements of this function, this call
353 // SAFETY: By function safety requirements, name points to a null
369 // SAFETY: We allocated the pointee of `child_ptr` above as a
377 /// # Safety
393 // SAFETY: By function safety requirements of this function, this call
397 // SAFETY: By function safety requirements, `item` is embedded in a
400 // SAFETY: By function safety requirements, `c_child_group_ptr` is
405 // SAFETY: We called `into_raw` to produce `r_child_group_ptr` in
413 // SAFETY: By C API contract, we are required to drop a refcount on
438 /// # Safety
446 // SAFETY: By function safety requirements, `this` is embedded in a
449 // SAFETY: By function safety requirements, `c_group_ptr` is
453 // SAFETY: We called `into_raw` on `r_group_ptr` in
528 // SAFETY: We do not provide any operations on `Attribute`.
531 // SAFETY: Ownership of `Attribute` can safely be transferred to other threads.
538 /// # Safety
554 // SAFETY: By function safety requirements, `item` is embedded in a
558 // SAFETY: The function safety requirements for this function satisfy
562 // SAFETY: By function safety requirements, `page` is writable for `PAGE_SIZE`.
571 /// # Safety
588 // SAFETY: By function safety requirements, `item` is embedded in a
592 // SAFETY: The function safety requirements for this function satisfy
598 // SAFETY: By function safety requirements, `page` is readable
687 // SAFETY: Ownership of `AttributeList` can safely be transferred to other threads.
690 // SAFETY: We do not provide any operations on `AttributeList` that need synchronization.
694 /// # Safety
703 /// # Safety
717 // SAFETY: By function safety requirements, we have exclusive access to
736 // SAFETY: We do not provide any operations on `ItemType` that need synchronization.
739 // SAFETY: Ownership of `ItemType` can safely be transferred to other threads.
948 // SAFETY: By design of this macro, the name of the variable we
998 // SAFETY: We are expanding `configfs_attrs`.
1012 // SAFETY: We are expanding `configfs_attrs`.