mirror of
https://github.com/torvalds/linux.git
synced 2026-11-20 13:03:48 +00:00
Add a practical usage example to the documentation of KVec::as_slice() showing how to: Create a new KVec. Push elements into it. Convert to a slice via as_slice(). Co-developed-by: Geliang Tang <[email protected]> Signed-off-by: Geliang Tang <[email protected]> Signed-off-by: Hui Zhu <[email protected]> Reviewed-by: Alice Ryhl <[email protected]> Reviewed-by: Kunwu Chan <[email protected]> Reviewed-by: David Gow <[email protected]> Link: https://lore.kernel.org/r/4e7f396f38ed8a780f863384bfc3d7de135ef3ea.1753929369.git.zhuhui@kylinos.cn Signed-off-by: Danilo Krummrich <[email protected]>