hash_sub(9)
π¦ hash_sub(9) β the kernel API manual, but make it make sense
okay so bestie, welcome to hash_sub(9) β yes that's the hash_sub man page from the Kernel API Manual, and yes we're gonna get through it together π
β¨ NAME β¨
hash_sub β substracts @b from @a and returns the result π
that's it. that's the whole name section. she's short, she's sweet, she's an icon.
πΈ SYNOPSIS πΈ
struct ftrace_hash * hash_sub (struct ftrace_hash *a , struct ftrace_hash *b );
literally just look at her. two struct ftrace_hash pointers walk in, one struct ftrace_hash pointer (hopefully) walks out. main character energy fr fr π«Ά
π ARGUMENTS π
aβ astruct ftrace_hashobject. the one being subtracted from, iykyk πbβ astruct ftrace_hashobject. the one doing the subtracting π
π₯ DESCRIPTION π₯
so what actually happens? it returns a struct ftrace_hash object on success, and NULL on error. that's the whole vibe check β success gets you a shiny hash object, error gets you NULL and honestly? same. π
no cap, that's every single thing this page tells us about behavior. don't come for me, I'm just the messenger π
β SEE ALSO β
okay this is the part where the page pops OFF β look at this lineup, it's giving guest list at the most exclusive function ever π
lives in the kernel file ./kernel/trace/ftrace.c, and hangs out with:
ftrace_lookup_ip(9)ftrace_free_filter(9)ftrace_hash_move(9)ftrace_location_range(9)ftrace_location(9)ftrace_text_reserved(9)ftrace_bug(9)ftrace_update_record(9)ftrace_test_record(9)ftrace_get_addr_new(9)ftrace_get_addr_curr(9)ftrace_rec_iter_start(9)ftrace_rec_iter_next(9)ftrace_rec_iter_record(9)ftrace_run_stop_machine(9)arch_ftrace_update_code(9)ftrace_startup_subops(9)ftrace_shutdown_subops(9)ftrace_regex_open(9)allocate_ftrace_func_mapper(9)ftrace_func_mapper_find_ip(9)ftrace_func_mapper_add_ip(9)ftrace_func_mapper_remove_ip(9)free_ftrace_func_mapper(9)register_ftrace_direct(9)unregister_ftrace_direct(9)modify_ftrace_direct_nolock(9)modify_ftrace_direct(9)hash_add(9)update_ftrace_direct_add(9)update_ftrace_direct_del(9)update_ftrace_direct_mod(9)ftrace_set_filter_ip(9)ftrace_set_filter_ips(9)ftrace_ops_set_global_filter(9)ftrace_set_filter(9)ftrace_set_notrace(9)ftrace_set_global_filter(9)ftrace_set_global_notrace(9)ftrace_ops_get_func(9)ftrace_kill(9)ftrace_is_dead(9)register_ftrace_function(9)unregister_ftrace_function(9)ftrace_lookup_symbols(9)
like?? forty-something cross-references?? she said "I know everybody and everybody knows me" π β¨
friendly reminder bestie: I did not invent a single one of these, they're all straight off the page β go read the actual ones if you need the real tea π
π§ cute lil sign-off π§
and that's the whole page, bestie! sourced from ./kernel/trace, dated October 2026, and filed under hash_sub(9) β go forth and subtract hashes responsibly ππ¦
π¦ 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