From 83c207920d2073c45ff15d1da92a126d8d892eec Mon Sep 17 00:00:00 2001 From: "Luke T. Shumaker" Date: Sat, 22 Mar 2025 12:13:08 -0600 Subject: lib9p: idl: Have bitfield bit names be less heuristic --- lib9p/idl/0000-README.md | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib9p/idl/0000-README.md') 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. -- cgit v1.2.3-2-g168b