ntmp_fdbt_add_entry(9)
π ntmp_fdbt_add_entry β bestie edition
okay so picture this: it's giving "kernel API manual," the manual name is literally ntmp_fdbt_add_entry(9), and today we're learning how to add an entry into the FDB table. that's the whole vibe. FDB table? entry? added? yes ma'am. π
β¨ SYNOPSIS β¨
int ntmp_fdbt_add_entry (struct ntmp_user *user , u32 *entry_id , const
struct fdbt_keye_data *keye , const struct fdbt_cfge_data *cfge );
look at her. four params, returns an int, absolutely iconic behavior. no notes. π
πΈ ARGUMENTS πΈ
userβ the targetntmp_userstruct, aka the main character of this operation π«Άentry_idβ a returned value, bestie! it's the entry ID of the new added entry, so like, the function hands you back the ID of the thing you just made β¨keyeβ key element data πcfgeβ configuration element data βοΈ
π RETURN π
0 on success, otherwise a negative error code. so if you get 0 you're slaying, and if it's negative... not slaying, but at least you know π
fr fr check the return value, that's the vibe check of this whole function π
π¦ SEE ALSO π¦
first up, the kernel file this lives in:
Kernel file ./drivers/net/ethernet/freescale/enetc/ntmp.c
and then the whole friend group, because of course there's a friend group π
ntmp_ipft_add_entry(9)ntmp_ipft_delete_entry(9)ntmp_fdbt_update_entry(9)ntmp_fdbt_delete_entry(9)ntmp_fdbt_search_port_entry(9)ntmp_fdbt_update_activity_element(9)ntmp_fdbt_delete_ageing_entries(9)ntmp_fdbt_delete_port_dynamic_entries(9)ntmp_vft_set_entry(9)ntmp_vft_add_entry(9)ntmp_vft_update_entry(9)ntmp_vft_delete_entry(9)ntmp_ett_set_entry(9)ntmp_ett_add_entry(9)ntmp_ett_update_entry(9)ntmp_ett_delete_entry(9)ntmp_ect_update_entry(9)
like, that's the whole roster. read them. love them. they're family π§
lowkey reminder that this page comes from ./drivers/net/ethernet/freesca... and it's dated October 2026 β so mark your calendars bestie, this manual is from the future βπ
anyway ily, go add some entries, and remember: 0 on success only π
π¦ 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