ntmp_fdbt_search_port_entry(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 target ntmp_user struct. 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 NULL entry 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:

Every single one of them, no skipping, no cutting corners 🧚


🫢 tiny heads-up so nobody gets caught out: resume_entry_id is doing two jobs at once β€” it's your input and your output, and if it's a NULL entry 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