Changeset b5e68c8 in mainline for uspace/lib/block/libblock.h
- Timestamp:
- 2011-05-12T16:49:44Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f36787d7
- Parents:
- e80329d6 (diff), 750636a (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/block/libblock.h
re80329d6 rb5e68c8 72 72 fibril_rwlock_t contents_lock; 73 73 /** Handle of the device where the block resides. */ 74 dev_handle_t dev_handle; 75 /** Block offset on the block device. Counted in 'size'-byte blocks. */ 76 aoff64_t boff; 74 devmap_handle_t devmap_handle; 75 /** Logical block address */ 76 aoff64_t lba; 77 /** Physical block address */ 78 aoff64_t pba; 77 79 /** Size of the block. */ 78 80 size_t size; … … 93 95 }; 94 96 95 extern int block_init(dev _handle_t, size_t);96 extern void block_fini(dev _handle_t);97 extern int block_init(devmap_handle_t, size_t); 98 extern void block_fini(devmap_handle_t); 97 99 98 extern int block_bb_read(dev _handle_t, aoff64_t);99 extern void *block_bb_get(dev _handle_t);100 extern int block_bb_read(devmap_handle_t, aoff64_t); 101 extern void *block_bb_get(devmap_handle_t); 100 102 101 extern int block_cache_init(dev _handle_t, size_t, unsigned, enum cache_mode);102 extern int block_cache_fini(dev _handle_t);103 extern int block_cache_init(devmap_handle_t, size_t, unsigned, enum cache_mode); 104 extern int block_cache_fini(devmap_handle_t); 103 105 104 extern int block_get(block_t **, dev _handle_t, aoff64_t, int);106 extern int block_get(block_t **, devmap_handle_t, aoff64_t, int); 105 107 extern int block_put(block_t *); 106 108 107 extern int block_seqread(dev _handle_t, size_t *, size_t *, aoff64_t *, void *,109 extern int block_seqread(devmap_handle_t, size_t *, size_t *, aoff64_t *, void *, 108 110 size_t); 109 111 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 *);112 extern int block_get_bsize(devmap_handle_t, size_t *); 113 extern int block_get_nblocks(devmap_handle_t, aoff64_t *); 114 extern int block_read_direct(devmap_handle_t, aoff64_t, size_t, void *); 115 extern int block_write_direct(devmap_handle_t, aoff64_t, size_t, const void *); 114 116 115 117 #endif
Note:
See TracChangeset
for help on using the changeset viewer.