ENUM DEVLINK_PORT_FN_OPSTATE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so this is the enum devlink_port_fn_opstate page from the Kernel API Manual, and it’s literally all about the operational state of a function. iykyk ✨


🌸 NAME 🌸

enum devlink_port_fn_opstate β€” indicates operational state of the function. that’s the whole vibe check, bestie πŸ’–

✨ SYNOPSIS ✨

enum devlink_port_fn_opstate {
    DEVLINK_PORT_FN_OPSTATE_DETACHED ,
    DEVLINK_PORT_FN_OPSTATE_ATTACHED

};

πŸŽ€ Constants πŸŽ€

  • DEVLINK_PORT_FN_OPSTATE_DETACHED β€” the driver is detached from the function. it is safe to delete the port. periodt πŸ’…
  • DEVLINK_PORT_FN_OPSTATE_ATTACHED β€” the driver is attached to the function. for a graceful tear down of the function, after inactivation of the function, the user should wait for the operational state to turn to DETACHED. no skipping that step, bestie 🫢

πŸ¦‹ SEE ALSO πŸ¦‹

  • Kernel file ./include/uapi/linux/devlink.h
  • enum devlink_trap_action(9)
  • enum devlink_trap_type(9)

lowkey the whole point: DETACHED = safe to delete the port; ATTACHED = wait for it to flip to DETACHED after inactivation if you want that graceful tear down 😭πŸ”₯

okay bye bestie, this page is from ./include/uapi/linux, dated October 2026, and the page id is enum devlink...t_fn_opstate(9) βœ¨πŸ’–

πŸ“¦ where this page comes from