refactor(v3): the block subsystem is one chain again
blk_chain_default, blk_chain_new and blk_chain_select (0e761cb1) were for
a node's own drive, which was withdrawn on 2026-10-07 (docs/v4.0.0/MESH.md
8.5). They are taken out. What remains of that change is that
blk_subsys_init takes no VM.
Accepted on the v3 configuration: amd64, aarch64 and riscv64 reach the
zuse prompt, no UNKNOWN WORD, PARITY:M7.1a hash 0x08873e0f44b7cb2a on all
three, as before. logs/20261007-082647, -082752, -082938.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
d5b7235464
commit
7c06bdfdb6
@@ -329,17 +329,6 @@ enum { BLK_FMT_FORMATTED = 0, BLK_FMT_PROVISIONAL = 1 };
|
||||
/* ===== Public API ===== */
|
||||
int blk_subsys_init(uint8_t *ram_base, size_t ram_size);
|
||||
|
||||
/* A chain is fast RAM and the devices chained after it. blk_chain_default
|
||||
* is the one there has always been. blk_chain_new makes another, not yet
|
||||
* initialized, or returns 0 if there is no memory. blk_chain_select makes
|
||||
* every blk_* call from now on act on `c`, blk_subsys_init included, and
|
||||
* returns the chain that was selected before; a null `c` selects nothing
|
||||
* new. docs/v4.0.0/MESH.md 8.4. */
|
||||
typedef struct blk_chain blk_chain_t;
|
||||
blk_chain_t *blk_chain_default(void);
|
||||
blk_chain_t *blk_chain_new(void);
|
||||
blk_chain_t *blk_chain_select(blk_chain_t *c);
|
||||
|
||||
int blk_subsys_attach_device(struct blkio_dev *dev);
|
||||
|
||||
/* Milestone 2h hot-detach. Refuses (BLK_EINVAL) unless dev's slot is the
|
||||
|
||||
Reference in New Issue
Block a user