feat: tbf serialization#127
Open
addrian-77 wants to merge 1 commit into
Open
Conversation
eva-cosma
reviewed
Apr 23, 2026
Comment on lines
+132
to
+138
| bitflags! { | ||
| /// TBF flags | ||
| pub struct Flags: u32 { | ||
| const Enabled = 1; | ||
| const Sticky = 1 << 1; | ||
| } | ||
| } |
Collaborator
There was a problem hiding this comment.
Are these all of the tbf flags, or are there more? Could you add a link to the tock documentation in the comment for this structure
Author
There was a problem hiding this comment.
https://book.tockos.org/doc/tock_binary_format?highlight=flags#tbf-header-base
> Bit 0 marks the process enabled. A 1 indicates the process is enabled. Disabled processes will not be launched at startup.
> Bit 1 marks the process as sticky. A 1 indicates the process is sticky. Sticky processes require additional confirmation to be erased. For example, tockloader requires the --force flag erase them. This is useful for services running as processes that should always be available.
> Bits 2-31 are reserved and should be set to 0.
Currently there are only 2 flags, enabled and sticky, the rest of the bits are reserved.
Signed-off-by: Adrian Lungu <lunguadrian30@gmail.com>
addrian-77
force-pushed
the
add/tbf-serialize
branch
from
April 23, 2026 17:46
8c9f1c6 to
3a329cc
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request Overview
This pull request adds serialization for TBF Headers
TODO or Help Wanted
Checks
Using Rust tooling
cargo fmtcargo clippycargo testcargo buildFeatures tested:
GitHub Issue
This pull request closes #117