ntmp_fdbt_search_port_entry(9)
π ntmp_fdbt_search_port_entry(9) β from the Kernel API Manual, bestie β¨
Okay so listen π«Ά this one is a kernel API page and it's giving very much "let me find you that one FDB entry on a specific port" energy. The function is literally called ntmp_fdbt_search_port_entry, and yes, that's the whole vibe. No cap.
πΈ NAME πΈ
ntmp_fdbt_search_port_entry β searches for the FDB entry on the port you specify, and it does it based on RESUME_ENTRY_ID. That's the assignment, that's the mission, periodt. π
β¨ SYNOPSIS β¨
int ntmp_fdbt_search_port_entry (struct ntmp_user *user , int port , u32
*resume_entry_id , struct fdbt_entry_data *entry );
That's the whole signature, copied exactly, don't come for me about the spacing. π
π¦ ARGUMENTS π¦
userβ the targetntmp_userstruct. Your main character struct, honestly.portβ the specified switch port ID. Like, which port are we snooping around in πresume_entry_idβ okay this one is highkey doing double duty, she's both an input and an output, obsessed with the versatility:- As an input, it represents the FDB entry ID to be searched.
- If it's a
NULLentry ID, that means you're searching for the first FDB entry for that port. Starting fresh, clean slate, new era π - As an output, it represents the next FDB entry ID to be searched. So she hands you the next one on your way out π
entryβ the returned value, i.e. the response data of the FDB entry you searched for. This is the part where you get your answer, slay π
π RETURN π
0 on success, otherwise a negative error code. Simple, iconic, no notes. π₯
π SEE ALSO π
The kernel file, for real for real: ./drivers/net/ethernet/freescale/enetc/ntmp.c
And the whole squad of related pages, iykyk:
ntmp_ipft_add_entry(9)ntmp_ipft_delete_entry(9)ntmp_fdbt_add_entry(9)ntmp_fdbt_update_entry(9)ntmp_fdbt_delete_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)
Every single one of them, no skipping, no cutting corners π§
π«Ά tiny heads-up so nobody gets caught out:resume_entry_idis doing two jobs at once β it's your input and your output, and if it's aNULLentry ID you're asking for the first FDB entry on that port. Keep that straight and you're golden β¨
And that's the page, bestie! πΈ Sign-off time: this one lives at ./drivers/net/ethernet/freesca... π and it's dated October 2026, filed under ntmp_fdbt_search_port_entry(9) β okay bye, love you, read your man pages π
π¦ 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