Changeset 45f04f8 in mainline for uspace/lib/block/libblock.h
- Timestamp:
- 2010-11-18T18:23:43Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3f0a7971, a7811f17, cb569e6
- Parents:
- 51a268f (diff), c63e70c (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
r51a268f r45f04f8 72 72 fibril_rwlock_t contents_lock; 73 73 /** Handle of the device where the block resides. */ 74 dev _handle_t dev_handle;74 devmap_handle_t devmap_handle; 75 75 /** Block offset on the block device. Counted in 'size'-byte blocks. */ 76 76 aoff64_t boff; … … 93 93 }; 94 94 95 extern int block_init(dev _handle_t, size_t);96 extern void block_fini(dev _handle_t);95 extern int block_init(devmap_handle_t, size_t); 96 extern void block_fini(devmap_handle_t); 97 97 98 extern int block_bb_read(dev _handle_t, aoff64_t);99 extern void *block_bb_get(dev _handle_t);98 extern int block_bb_read(devmap_handle_t, aoff64_t); 99 extern void *block_bb_get(devmap_handle_t); 100 100 101 extern int block_cache_init(dev _handle_t, size_t, unsigned, enum cache_mode);102 extern int block_cache_fini(dev _handle_t);101 extern int block_cache_init(devmap_handle_t, size_t, unsigned, enum cache_mode); 102 extern int block_cache_fini(devmap_handle_t); 103 103 104 extern int block_get(block_t **, dev _handle_t, aoff64_t, int);104 extern int block_get(block_t **, devmap_handle_t, aoff64_t, int); 105 105 extern int block_put(block_t *); 106 106 107 extern int block_seqread(dev _handle_t, size_t *, size_t *, aoff64_t *, void *,107 extern int block_seqread(devmap_handle_t, size_t *, size_t *, aoff64_t *, void *, 108 108 size_t); 109 109 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 *);110 extern int block_get_bsize(devmap_handle_t, size_t *); 111 extern int block_get_nblocks(devmap_handle_t, aoff64_t *); 112 extern int block_read_direct(devmap_handle_t, aoff64_t, size_t, void *); 113 extern int block_write_direct(devmap_handle_t, aoff64_t, size_t, const void *); 114 114 115 115 #endif
Note:
See TracChangeset
for help on using the changeset viewer.