Commit 5a60a5

2026-06-08 07:40:47 Bob Green: -/-
programming/machine library.md ..
@@ 103,3 103,15 @@
int poke(uint8_t *addr, uint8_t val);
```
`peek()` attempts to read a byte from memory, returning the value read, or -1 if the read failed due to a Bus Error. Similarly, `poke()` attempts to write a byte to memory, returning -1 on a Bus Error.
+
+ ## Filesystem Support
+ ### ext2
+ ```C
+ ext2_bg_t *ext2_get_blockgroup_descriptor(ext2_fs_t *fs, uint32_t blockgroup_num, ext2_bg_t *bg);
+ int ext2_read_block(ext2_fs_t *fs, uint32_t block_num, uint8_t *buffer);
+ int ext2_read_fs_block(ext2_fs_t *fs, uint32_t block_num);
+ int ext2_get_inode(ext2_fs_t *fs, uint32_t inode_num, ext2_inode_t *inode);
+ ext2_fs_t *ext2_mount(uint8_t part_num);
+ ext2_fs_t *ext2_umount(ext2_fs_t *fs);
+ int is_ext2(ext2_sb_t *sb);
+ ```
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9