fwctl_alloc_device(9)
π 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 thestruct fwctl_deviceindrv_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
- 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