The FAM struct implementation is minimalist and only works for FAM structs that have 2 fields: the number of entries and the incomplete array type.
FAM structs by their definition just require that the last field in the structure is the incomplete array type, but it does not talk about the number of other fields.
We should extend this implementation to support other scenarios as well. Because of this miss, vfio-ioctls cannot use the FamStructWrapper code and needs to redefine how to work with FAM.
The FAM struct implementation is minimalist and only works for FAM structs that have 2 fields: the number of entries and the incomplete array type.
FAM structs by their definition just require that the last field in the structure is the incomplete array type, but it does not talk about the number of other fields.
We should extend this implementation to support other scenarios as well. Because of this miss, vfio-ioctls cannot use the
FamStructWrapper
code and needs to redefine how to work with FAM.