Changes in uspace/lib/libblock/libblock.h [ed903174:08232ee] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/libblock/libblock.h
red903174 r08232ee 74 74 dev_handle_t dev_handle; 75 75 /** Block offset on the block device. Counted in 'size'-byte blocks. */ 76 aoff64_t boff;76 bn_t boff; 77 77 /** Size of the block. */ 78 78 size_t size; … … 96 96 extern void block_fini(dev_handle_t); 97 97 98 extern int block_bb_read(dev_handle_t, aoff64_t);98 extern int block_bb_read(dev_handle_t, bn_t); 99 99 extern void *block_bb_get(dev_handle_t); 100 100 101 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 102 104 extern int block_get(block_t **, dev_handle_t, aoff64_t, int);103 extern int block_get(block_t **, dev_handle_t, bn_t, int); 105 104 extern int block_put(block_t *); 106 105 107 extern int block_seqread(dev_handle_t, size_t *, size_t *, aoff64_t *, void *,106 extern int block_seqread(dev_handle_t, off_t *, size_t *, off_t *, void *, 108 107 size_t); 109 108 110 109 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_nblocks(dev_handle_t, bn_t *); 111 extern int block_read_direct(dev_handle_t, bn_t, size_t, void *); 112 extern int block_write_direct(dev_handle_t, bn_t, size_t, const void *); 114 113 115 114 #endif
Note:
See TracChangeset
for help on using the changeset viewer.