str_has_prefix(9)
okay so bestie, this is the Kernel API Manual page for str_has_prefix(9) β a tiny function with major βdoes exactly what its name saysβ energy. Letβs get into it π
β¨
πΈ NAME πΈ
str_has_prefix β test if a string has a given prefix. Thatβs the whole gig, and it ate.
β¨ SYNOPSIS β¨
bool str_has_prefix (const char *str , const char *prefix );
π ARGUMENTS π
strβ the string youβre testing. Like, the main character string in this situation.prefixβ the string youβre checking to see ifstrstarts with. The beginning vibe, basically.
π RETURN π
Returns true if str starts with prefix. Returns false otherwise. No cap, thatβs it.
π¦ SEE ALSO π¦
- Kernel file
./tools/tracing/rtla/src/utils.hβ the source-side bestie for this one.
Signed off from ./tools/tracing/rtla/src, stamped October 2026, and still serving str_has_prefix(9) realness ππβ¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms