|
|
Subscribe / Log in / New account

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.


to post comments

Documenting counted-by relationships in kernel data structures

Posted Jul 4, 2023 5:00 UTC (Tue) by Paf (subscriber, #91811) [Link]

Hmm, OK, thanks!


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds