fn pr_get_auxv_dynamic(buffer: &mut [u8; 512]) -> Result<Cow<'_, [u8]>>
Expand description
Use Linux ≥ 6.4’s PR_GET_AUXV
to read the aux records, using a
provided statically-sized buffer if possible, or a dynamically allocated
buffer otherwise. Return:
- Ok(…) on success.
- Err(err) on failure.