Skip to content

UAPI: avoid usage of bitfield values in exchange to keep the Rust interface easy and without dependencies #68

@pthierry-ledger

Description

@pthierry-ledger

Bitfields is sometime used for cases where behaviors may be concurrently activated for a given feature.
This is a relative standard C model, in the same way HW registers behave.
In Rust, this requires external depedency (bitfield crate), that is not allowed for TCB components, including uapi.

If possible (to be checked), the usage of bitfield in userspace-kernelspace exchanged should be replaced by full enumeration.
This requires an analysis to ensure that such a modification do not make semantics complex and do not increase the memory usage.

Metadata

Metadata

Assignees

No one assigned

    Labels

    apiimpact the external API of the componentenhancementrequest for code evolution

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions