ntmp_fdbt_add_entry(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 target ntmp_user struct, 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 πŸ‘‘

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