Skip to main content

bpf_map_get_next_key

Function bpf_map_get_next_key 

Source
pub fn bpf_map_get_next_key(
    map: BorrowedFd<'_>,
    key: Option<&[u8]>,
    next_key_out: &mut [u8],
) -> Result<bool, Errno>
Expand description

BPF_MAP_GET_NEXT_KEY — itère les clés. key = None ⇒ première clé.

Retourne false à la fin de l’itération (le kernel renvoie ENOENT).

§Errors

  • [Errno::EINVAL] : taille de clé incohérente.