Changeset 6f13257 in mainline for uspace/srv/bd/hr/raid0.c
- Timestamp:
- 2025-05-20T11:01:31Z (2 months ago)
- Children:
- c5b60e25
- Parents:
- a2281efc
- git-author:
- Miroslav Cimerman <mc@…> (2025-05-20 10:55:15)
- git-committer:
- Miroslav Cimerman <mc@…> (2025-05-20 11:01:31)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/bd/hr/raid0.c
ra2281efc r6f13257 53 53 #include "var.h" 54 54 55 static void 56 static void 57 static errno_t 55 static void hr_raid0_update_vol_state(hr_volume_t *); 56 static void hr_raid0_state_callback(hr_volume_t *, size_t, errno_t); 57 static errno_t hr_raid0_bd_op(hr_bd_op_type_t, bd_srv_t *, aoff64_t, size_t, 58 58 void *, const void *, size_t); 59 59 60 60 /* bdops */ 61 static errno_t 62 static errno_t 63 static errno_t 61 static errno_t hr_raid0_bd_open(bd_srvs_t *, bd_srv_t *); 62 static errno_t hr_raid0_bd_close(bd_srv_t *); 63 static errno_t hr_raid0_bd_read_blocks(bd_srv_t *, aoff64_t, size_t, void *, 64 64 size_t); 65 static errno_t 66 static errno_t 65 static errno_t hr_raid0_bd_sync_cache(bd_srv_t *, aoff64_t, size_t); 66 static errno_t hr_raid0_bd_write_blocks(bd_srv_t *, aoff64_t, size_t, 67 67 const void *, size_t); 68 static errno_t 69 static errno_t 68 static errno_t hr_raid0_bd_get_block_size(bd_srv_t *, size_t *); 69 static errno_t hr_raid0_bd_get_num_blocks(bd_srv_t *, aoff64_t *); 70 70 71 71 static bd_ops_t hr_raid0_bd_ops = { 72 .open 73 .close 74 .sync_cache 75 .read_blocks 76 .write_blocks 77 .get_block_size 78 .get_num_blocks 72 .open = hr_raid0_bd_open, 73 .close = hr_raid0_bd_close, 74 .sync_cache = hr_raid0_bd_sync_cache, 75 .read_blocks = hr_raid0_bd_read_blocks, 76 .write_blocks = hr_raid0_bd_write_blocks, 77 .get_block_size = hr_raid0_bd_get_block_size, 78 .get_num_blocks = hr_raid0_bd_get_num_blocks 79 79 }; 80 80
Note:
See TracChangeset
for help on using the changeset viewer.