diff options
author | Luke T. Shumaker <lukeshu@lukeshu.com> | 2025-03-22 12:13:08 -0600 |
---|---|---|
committer | Luke T. Shumaker <lukeshu@lukeshu.com> | 2025-03-22 19:32:44 -0600 |
commit | 83c207920d2073c45ff15d1da92a126d8d892eec (patch) | |
tree | 75f80da13f7b722da32c1624054368f5c9ec8128 /lib9p/idl/0000-README.md | |
parent | d912a4d79ed9e51e5dfcc24e6445c1de7dbb1a30 (diff) |
lib9p: idl: Have bitfield bit names be less heuristic
Diffstat (limited to 'lib9p/idl/0000-README.md')
-rw-r--r-- | lib9p/idl/0000-README.md | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib9p/idl/0000-README.md b/lib9p/idl/0000-README.md index 036de22..e19a1e8 100644 --- a/lib9p/idl/0000-README.md +++ b/lib9p/idl/0000-README.md @@ -41,6 +41,11 @@ and messages (which are a special-case of structures). msg Tname = "size[4,val=end-&size] typ[1,val=TYP] tag[tag] REST..." +Bitfield bit names may be wrapped in `reserved(...)` or +`subfield(...)`; reserved indicates that the bit is named but is not +allowed to be used, and subfield indicates that the bit is part of a +num/enum that is handled by an alias. + Struct fields that have numeric types (either primitives or `num` types) can add to their type `,val=` and/or `,max=` to specify what the exact value must be and/or what the maximum (inclusive) value is. |