hinic_port_del_vlan(9)
π 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:
change_mac(9)hinic_port_add_mac(9)hinic_port_del_mac(9)hinic_port_get_mac(9)hinic_port_set_mtu(9)hinic_port_add_vlan(9)hinic_port_set_rx_mode(9)hinic_port_link_state(9)hinic_port_set_state(9)hinic_port_set_func_state(9)hinic_port_get_cap(9)hinic_port_set_tso(9)
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
- 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