Documenting counted-by relationships in kernel data structures
Documenting counted-by relationships in kernel data structures
Posted Jul 3, 2023 20:34 UTC (Mon) by josh (subscriber, #17465)In reply to: Documenting counted-by relationships in kernel data structures by Paf
Parent article: Documenting counted-by relationships in kernel data structures
Binding generators for other languages read C header files, but the C headers (without this attribute) don't say how big a flexible array member is, making the bindings necessarily unsafe. With this attribute, binding generators could generate safer bindings, because they know how long the array is.
Posted Jul 4, 2023 5:00 UTC (Tue)
by Paf (subscriber, #91811)
[Link]
Documenting counted-by relationships in kernel data structures
Hmm, OK, thanks!