hinic_port_del_vlan(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… hinic_port_del_vlan β€” like, the whole kernel API manual tea πŸ«–

okay bestie, welcome to the hinic_port_del_vlan(9) page, straight out of the Kernel API Manual. she's a tiny little function with one job and honestly? she ate. let's get into it ✨


🌸 NAME 🌸

hinic_port_del_vlan β€” delete vlan from the nic device πŸ’…

like. that's it. that's the whole vibe. she removes a vlan from your nic device and she does not overthink it. no cap.


✨ SYNOPSIS ✨

int hinic_port_del_vlan (struct hinic_dev *nic_dev , u16 vlan_id );

she returns an int, she takes a struct hinic_dev * and a u16, and she's out. iconic behavior honestly πŸŽ€


πŸ¦‹ ARGUMENTS πŸ¦‹

  • nic_dev β€” the nic device 🌈 like, the actual network interface card device struct you're messing with. she's the main character here.
  • vlan_id β€” the vlan number to delete πŸ”₯ the specific vlan you want gone-gone.

πŸ’– DESCRIPTION πŸ’–

so here's the whole deal, and it's short but it's important:

Return 0 - Success, negative - Failure

that's the entire contract fr fr. if she gives you 0, you're slaying, the vlan is deleted, everyone's happy πŸ’œ. if you get a negative value back, it didn't work and you should probably go touch some grass and then debug 😭.

no in-between, no cute little success-but-maybe-not situation. zero or negative. periodt.


🧚 SEE ALSO 🧚

if you're the kind of girl who reads the whole series, start here β€” the kernel file itself lives at:

Kernel file ./drivers/net/ethernet/huawei/hinic/hinic_port.c

and then there's the whole friend group, all of them (9) section besties:

notice hinic_port_add_vlan(9) is literally right there in the list β€” she's the del to her add, the yin to her yang, iykyk 🌸


quick reminder bestie: the return is 0 for success and negative for failure. don't be out here checking for positive values, that's not the vibe check you're looking for πŸ™ˆ

and that's the page!! πŸŽ€ this gem comes to you from ./drivers/net/ethernet/huawei/... and is dated October 2026, so mark your calendars, mwah πŸ’‹ bye bestie, go delete some vlans responsibly πŸ‘‘

πŸ“¦ where this page comes from