Changeset 1d8cdb1 in mainline for uspace/lib/libblock/libblock.h
- Timestamp:
- 2008-11-18T20:28:17Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 18c485a
- Parents:
- 26fa0f9f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/libblock/libblock.h
r26fa0f9f r1d8cdb1 45 45 #include <libadt/list.h> 46 46 47 /* 48 * Flags that can be used with block_get(). 49 */ 50 51 /** 52 * This macro is a symbolic value for situations where no special flags are 53 * needed. 54 */ 55 #define BLOCK_FLAGS_NONE 0 56 57 /** 58 * When the client of block_get() intends to overwrite the current contents of 59 * the block, this flag is used to avoid the unnecessary read. 60 */ 61 #define BLOCK_FLAGS_NOREAD 1 62 47 63 typedef unsigned bn_t; /**< Block number type. */ 48 64 … … 78 94 extern int block_cache_init(dev_handle_t, size_t, unsigned); 79 95 80 extern block_t *block_get(dev_handle_t, bn_t );96 extern block_t *block_get(dev_handle_t, bn_t, int flags); 81 97 extern void block_put(block_t *); 82 98
Note:
See TracChangeset
for help on using the changeset viewer.