findstr(9)
π findstr β like, the safest little needle-hunter in the kernel πͺ‘β¨
okay so before we even start: this page lives in the Kernel API Manual (section 9, kernel-space girlies only π), and honestly? she's a tiny function with main character energy. let's get into it.
β¨ NAME β¨
findstr β Safely find needle in haystack. π§΅πΎ
like literally that's the whole gig. needle. haystack. no cap.
π¦ SYNOPSIS π¦
char * findstr (char *haystack , int hlen , char *needle , int nlen );
that's her. she's short. she's sweet. she takes four things and she does not elaborate π
π ARGUMENTS π
haystackβ Buffer to look in. π₯ this is the big pile bestie, the place you're searching.hlenβ Number of bytes inhaystack. π yes you have to tell her how big the pile is, she's not gonna guess.needleβ Buffer to find. πͺ‘ the lil thing you're hunting for.nlenβ Number of bytes inneedle. π and yes, the needle gets a size too. equal opportunity measurements.
π RETURN π
Pointer into haystack where the needle was found β or NULL if not found. π«Ά
so like, it points into your haystack, it doesn't copy anything. if it comes backNULLshe just didn't see it fr fr. no error, no drama, justNULL. π
π SEE ALSO π
bestie she has a whole friend group and they're all in the DVB-CA world. buckle up π
Kernel file: ./drivers/media/dvb-core/dvb_ca_en50221.c
and the whole squad, in order, no skips (i would never):
dvb_ca_en50221_wait_if_status(9)dvb_ca_en50221_link_init(9)dvb_ca_en50221_read_tuple(9)dvb_ca_en50221_parse_attributes(9)dvb_ca_en50221_set_configoption(9)dvb_ca_en50221_read_data(9)dvb_ca_en50221_write_data(9)dvb_ca_en50221_slot_shutdown(9)dvb_ca_en50221_camchange_irq(9)dvb_ca_en50221_camready_irq(9)dvb_ca_en50221_frda_irq(9)dvb_ca_en50221_thread_wakeup(9)dvb_ca_en50221_thread_update_delay(9)dvb_ca_en50221_poll_cam_gone(9)dvb_ca_en50221_thread_state_machine(9)dvb_ca_en50221_io_do_ioctl(9)dvb_ca_en50221_io_ioctl(9)dvb_ca_en50221_io_write(9)dvb_ca_en50221_io_read(9)dvb_ca_en50221_io_open(9)dvb_ca_en50221_io_release(9)dvb_ca_en50221_io_poll(9)dvb_ca_en50221_init(9)dvb_ca_en50221_release(9)
twenty-four icons. she knows people. iykyk π π
ngl the whole "safely" in the NAME is doing a lot of heavy lifting up there β that's straight from the page bestie, i'm just the messenger π§
mwah π that's the page! this lil beauty ships out of ./drivers/media/dvb-core and it's dated October 2026 β mark your calendars, she's a findstr(9) girlie forever πβπ¦
π¦ 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