STRUCT FWCTL_INFO(9)
π NAME π
okay so bestie, welcome to the Kernel API Manual β¨ β this page is all about struct fwctl_info, which is literally the struct you hand to ioctl(FWCTL_INFO). no cap, that's the whole vibe π«Ά
π SYNOPSIS π
struct fwctl_info {
__u32 size;
__u32 flags;
__u32 out_device_type;
__u32 device_data_len;
__aligned_u64 out_device_data;
};
πΈ Members πΈ
sizeβ it's givingsizeof(struct fwctl_info). that's it, that's the field πflagsβ must be0. not "should be", not "hey maybe", must. zero it out, periodt π«out_device_typeβ on the way out, this returns the type of the device, straight fromenum fwctl_device_type. iykyk πdevice_data_lenβ on input, this is the length of theout_device_datamemory. on output, it's the size of the kernel'sdevice_data, which may be larger or smaller than the input π β so check it! it can be0on input, bestie πout_device_dataβ a pointer to memory that'sdevice_data_lenbytes long. the kernel will fill the entire memory, zeroing as required. every byte accounted for, slay β¨
π Description π
so this ioctl returns the basic info about this here fwctl instance β most importantly, what driver is being used to define the device_data format. that's the main character detail you're here for π
π¦ SEE ALSO π¦
- the kernel file
./include/uapi/fwctl/fwctl.h(go read it, it's iconic) General ioctl format(9)enum fwctl_rpc_scope(9)struct fwctl_rpc(9)
and that's the page, bestie!! π this little beauty lives out of ./include/uapi/fwctl and it's stamped October 2026 β go forth and ioctl responsibly, 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