bpf_strspn(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

bpf_strspn(9) β€” Kernel API Manual, but make it a vibe πŸ’…

okay so bestie, this is the bpf_strspn(9) page from the Kernel API Manual, and we are keeping every single detail. no cap.

✨ NAME ✨

bpf_strspn β€” calculate the length of the initial substring of @s__ign which only contains letters in @accept__ign

🌸 SYNOPSIS 🌸

__bpf_kfunc int bpf_strspn (const char *s__ign , const char *accept__ign
);

πŸŽ€ ARGUMENTS πŸŽ€

  • s__ign β€” the string to be searched 🫢
  • accept__ign β€” the string to search for πŸ”

πŸ”₯ RETURN πŸ”₯

  • >=0 β€” the length of the initial substring of s__ign which only contains letters from accept__ign ✨
  • -EFAULT β€” cannot read one of the strings 😭
  • -E2BIG β€” one of the strings is too large 😳
  • -ERANGE β€” one of the strings is outside of kernel address space πŸ’€

πŸ’œ SEE ALSO πŸ’œ

Kernel file ./kernel/bpf/helpers.c

the whole squad, fr fr:


okay that's the page!! footer vibes: source/version lives at ./kernel/bpf, and the date is October 2026. mwah πŸ’‹πŸ’–

πŸ“¦ where this page comes from