§H.12 step 14: C accessors for BMAPFMT block-ACL fields
blk_owner_fp_get/_set, blk_acl_allow_get/_set, blk_acl_ttl_get/_set, blk_flags_get/_set -- thin read-modify-write wrappers over the existing blk_get_meta()/blk_set_meta() (caching/dirty-tracking already owned there). Sets up the C-primitive layer FORTH wrappers (step 15) will call, mirroring the word-level ACL system's own split. Verified 3-arch boot to ok> (amd64/aarch64/riscv64). Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5
parent
c19cc07ee3
commit
15e6836ca3
@@ -413,6 +413,24 @@ int blk_get_meta(uint32_t block_num, blk_meta_t *meta);
|
||||
|
||||
int blk_set_meta(uint32_t block_num, const blk_meta_t *meta);
|
||||
|
||||
/* BMAPFMT field accessors -- FABRIC-3.md §F.4/§H.6/§H.12 step 14. Thin
|
||||
* read-modify-write wrappers over blk_get_meta()/blk_set_meta() (which
|
||||
* already own the caching/dirty-tracking), one per new blk_meta_t field.
|
||||
* FORTH wrappers (BLK-ACL-ALLOW@/! etc., §H.12 step 15) call these, not
|
||||
* blk_get_meta()/blk_set_meta() directly -- same C-primitive/FORTH-policy
|
||||
* split as the existing word-level ACL system. */
|
||||
int blk_owner_fp_get(uint32_t block_num, uint8_t out_fp[8]);
|
||||
int blk_owner_fp_set(uint32_t block_num, const uint8_t fp[8]);
|
||||
|
||||
int blk_acl_allow_get(uint32_t block_num, uint8_t *out_allow);
|
||||
int blk_acl_allow_set(uint32_t block_num, uint8_t allow);
|
||||
|
||||
int blk_acl_ttl_get(uint32_t block_num, uint32_t *out_ttl);
|
||||
int blk_acl_ttl_set(uint32_t block_num, uint32_t ttl);
|
||||
|
||||
int blk_flags_get(uint32_t block_num, uint64_t *out_flags);
|
||||
int blk_flags_set(uint32_t block_num, uint64_t flags);
|
||||
|
||||
int blk_is_allocated(uint32_t block_num);
|
||||
|
||||
int blk_mark_allocated(uint32_t block_num);
|
||||
|
||||
Reference in New Issue
Block a user