Lines Matching full:valid
81 /// - it accepts any pointer to a valid memory allocation allocated by this function.
82 /// - memory allocated by this function remains valid until it is passed to this function.
106 // `ptr` is NULL or valid. in call()
107 // - `ptr` is either NULL or valid by the safety requirements of this function. in call()
139 // - memory remains valid until it is explicitly freed,
140 // - passing a pointer to a valid memory allocation is OK,
177 /// // `ptr` is a valid pointer to a `Vmalloc` allocation.
178 /// // `ptr` is valid for the entire lifetime of `page`.
189 /// - `ptr` must be a valid pointer to a [`Vmalloc`] allocation.
190 /// - `ptr` must remain valid for the entire duration of `'a`.
192 // SAFETY: `ptr` is a valid pointer to `Vmalloc` memory. in to_page()
195 // SAFETY: `vmalloc_to_page` returns a valid pointer to a `struct page` for a valid pointer in to_page()
200 // - `page` is a valid pointer to a `struct page`, given that by the safety requirements of in to_page()
201 // this function `ptr` is a valid pointer to a `Vmalloc` allocation. in to_page()
202 // - By the safety requirements of this function `ptr` is valid for the entire lifetime of in to_page()
209 // - memory remains valid until it is explicitly freed,
210 // - passing a pointer to a valid memory allocation is OK,
223 // SAFETY: If not `None`, `ptr` is guaranteed to point to valid memory, which was previously in realloc()
230 // - memory remains valid until it is explicitly freed,
231 // - passing a pointer to a valid memory allocation is OK,
248 // SAFETY: If not `None`, `ptr` is guaranteed to point to valid memory, which was previously in realloc()