bpf_strcasecmp(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ bpf_strcasecmp ✨

okay so this is a page from the Kernel API Manual, section 9 β€” yes, the kernel one, we're literally in the big leagues bestie πŸ’…


🌸 NAME 🌸

bpf_strcasecmp β€” compare two strings but like… ignore the case of the characters 🫢


πŸŽ€ SYNOPSIS πŸŽ€

__bpf_kfunc int bpf_strcasecmp (const char *s1__ign , const char *s2__ign );

πŸ’– ARGUMENTS πŸ’–

  • s1__ign β€” one string. just a string. the first one πŸ“
  • s2__ign β€” another string. the other one. the competitor. the rival 😭

πŸ”₯ RETURN πŸ”₯

so here's the vibe check on what you get back πŸ‘‘

  • 0 β€” the strings are equal (slay, a match, they ate πŸ’…)
  • -1 β€” s1__ign is smaller
  • 1 β€” s2__ign is smaller
  • -EFAULT β€” cannot read one of the strings 🫠
  • -E2BIG β€” one of the strings is too large, it's giving main character energy, too much
  • -ERANGE β€” one of the strings is outside of the kernel address space, literally lost in the void ✨

πŸ¦‹ SEE ALSO πŸ¦‹

the kernel file ./kernel/bpf/helpers.c β€” that's where the magic lives, and also a whole group chat of friends:

ngl that's a whole friend group and every single one of them is iconic, go read them too 🧚

and that's the page bestie!! brought to you by ./kernel/bpf, dated October 2026, and the header says bpf_strcasecmp(9) β€” mwah, periodt πŸ’œπŸŒˆπŸ‘‘

πŸ“¦ where this page comes from