Changes in uspace/lib/block/libblock.h [a6ba0c9:63f8966] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/block/libblock.h
ra6ba0c9 r63f8966 72 72 fibril_rwlock_t contents_lock; 73 73 /** Handle of the device where the block resides. */ 74 devmap_handle_t devmap_handle; 75 /** Logical block address */ 76 aoff64_t lba; 77 /** Physical block address */ 78 aoff64_t pba; 74 dev_handle_t dev_handle; 75 /** Block offset on the block device. Counted in 'size'-byte blocks. */ 76 aoff64_t boff; 79 77 /** Size of the block. */ 80 78 size_t size; … … 95 93 }; 96 94 97 extern int block_init(dev map_handle_t, size_t);98 extern void block_fini(dev map_handle_t);95 extern int block_init(dev_handle_t, size_t); 96 extern void block_fini(dev_handle_t); 99 97 100 extern int block_bb_read(dev map_handle_t, aoff64_t);101 extern void *block_bb_get(dev map_handle_t);98 extern int block_bb_read(dev_handle_t, aoff64_t); 99 extern void *block_bb_get(dev_handle_t); 102 100 103 extern int block_cache_init(dev map_handle_t, size_t, unsigned, enum cache_mode);104 extern int block_cache_fini(dev map_handle_t);101 extern int block_cache_init(dev_handle_t, size_t, unsigned, enum cache_mode); 102 extern int block_cache_fini(dev_handle_t); 105 103 106 extern int block_get(block_t **, dev map_handle_t, aoff64_t, int);104 extern int block_get(block_t **, dev_handle_t, aoff64_t, int); 107 105 extern int block_put(block_t *); 108 106 109 extern int block_seqread(dev map_handle_t, size_t *, size_t *, aoff64_t *, void *,107 extern int block_seqread(dev_handle_t, size_t *, size_t *, aoff64_t *, void *, 110 108 size_t); 111 109 112 extern int block_get_bsize(dev map_handle_t, size_t *);113 extern int block_get_nblocks(dev map_handle_t, aoff64_t *);114 extern int block_read_direct(dev map_handle_t, aoff64_t, size_t, void *);115 extern int block_write_direct(dev map_handle_t, aoff64_t, size_t, const void *);110 extern int block_get_bsize(dev_handle_t, size_t *); 111 extern int block_get_nblocks(dev_handle_t, aoff64_t *); 112 extern int block_read_direct(dev_handle_t, aoff64_t, size_t, void *); 113 extern int block_write_direct(dev_handle_t, aoff64_t, size_t, const void *); 116 114 117 115 #endif
Note:
See TracChangeset
for help on using the changeset viewer.