Changeset 6c8d267 in mainline for uspace/lib/libblock/libblock.h
- Timestamp:
- 2008-11-09T14:12:20Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 913a821c
- Parents:
- 24d6efc
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/libblock/libblock.h
r24d6efc r6c8d267 45 45 #include <libadt/list.h> 46 46 47 typedef unsigned bn_t; /**< Block number type. */ 48 47 49 typedef struct block { 48 50 /** Futex protecting the reference count. */ … … 57 59 dev_handle_t dev_handle; 58 60 /** Block offset on the block device. Counted in 'size'-byte blocks. */ 59 off_t boff;61 bn_t boff; 60 62 /** Size of the block. */ 61 63 size_t size; … … 76 78 extern int block_cache_init(dev_handle_t, size_t, unsigned); 77 79 78 extern block_t *block_get(dev_handle_t, off_t);80 extern block_t *block_get(dev_handle_t, bn_t); 79 81 extern void block_put(block_t *); 80 82
Note:
See TracChangeset
for help on using the changeset viewer.