fwctl_alloc_device(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌈 NAME 🌈

fwctl_alloc_device(9) β€” welcome to the Kernel API Manual, bestie. This one is literally Allocate a fwctl. No cap, that's the whole name vibe. πŸ’…

✨ SYNOPSIS ✨

fwctl_alloc_device (parent , ops , drv_struct , member );

πŸŽ€ ARGUMENTS πŸŽ€

  • parent β€” physical device that provides the FW interface 🫢
  • ops β€” driver ops to register ✨
  • drv_struct β€” this argument is listed here, but the source page doesn't give it a separate one-liner πŸ™ˆ
  • member β€” name of the struct fwctl_device in drv_struct πŸŽ€

🌸 DESCRIPTION 🌸

Okay so this allocates and initializes the fwctl_device embedded in the drv_struct. Iconic. πŸ‘‘

Upon success the pointer must be freed via fwctl_put β€” yes, must, bestie, don't leave it hanging πŸ˜­πŸ’….

Returns a 'drv_struct on success, NULL on error. That's the whole returns situation, fr fr. 🌈

πŸ¦‹ SEE ALSO πŸ¦‹

  • Kernel file ./include/linux/fwctl.h πŸ“
  • struct fwctl_ops(9) πŸ”§
  • struct fwctl_device(9) 🧚
  • struct fwctl_uctx(9) πŸ¦‹

Source/version ./include/linux, dated October 2026 β€” cute little sign-off, mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from