You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
- [x] create a dedicated uapi dma.h header to properly separate
DMA-related exported types
- [x] preparation: export informative-relative DMA types to uapi
- [x] add sysgate for sys_dma_get_stream_info
- [x] add autotest tests for this syscall
- [x] add Rust-related structure definition that match dma.h using
public submodule in systypes module
This API return a complete structured stream definition based on
device-tree. This avoid any device-tee manipulation at userspace level
for DMAs.
Note: the overall DMA UAPI will have its associated full documentation
(RustDoc+Concept/mans) through a dedicated, final, PR.
Note: some fields are bitfields (ORed values) making the UAPI in Rust
harder to manipulate without depending on the public bitfield crate. The
mask may need to be replaced by a full enumeration of cases. This
support is out of this very PR. See #68 for more information.
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.
The text was updated successfully, but these errors were encountered: