Changes in uspace/lib/libblock/libblock.h [6408be3:00b1d20e] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/libblock/libblock.h
r6408be3 r00b1d20e 60 60 #define BLOCK_FLAGS_NOREAD 1 61 61 62 typedef u nsignedbn_t; /**< Block number type. */62 typedef uint64_t bn_t; /**< Block number type. */ 63 63 64 64 typedef struct block { … … 69 69 /** If true, the block needs to be written back to the block device. */ 70 70 bool dirty; 71 /** If true, the blcok does not contain valid data. */ 72 bool toxic; 71 73 /** Readers / Writer lock protecting the contents of the block. */ 72 74 fibril_rwlock_t contents_lock; … … 96 98 extern void block_fini(dev_handle_t); 97 99 98 extern int block_bb_read(dev_handle_t, off_t, size_t);100 extern int block_bb_read(dev_handle_t, bn_t); 99 101 extern void *block_bb_get(dev_handle_t); 100 102 101 103 extern int block_cache_init(dev_handle_t, size_t, unsigned, enum cache_mode); 102 104 103 extern block_t *block_get(dev_handle_t, bn_t, int);104 extern voidblock_put(block_t *);105 extern int block_get(block_t **, dev_handle_t, bn_t, int); 106 extern int block_put(block_t *); 105 107 106 108 extern int block_seqread(dev_handle_t, off_t *, size_t *, off_t *, void *, 107 size_t, size_t); 109 size_t); 110 111 extern int block_get_bsize(dev_handle_t, size_t *); 112 extern int block_read_direct(dev_handle_t, bn_t, size_t, void *); 113 extern int block_write_direct(dev_handle_t, bn_t, size_t, const void *); 108 114 109 115 #endif
Note:
See TracChangeset
for help on using the changeset viewer.