Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/libblock/libblock.h

    r00b1d20e r6408be3  
    6060#define BLOCK_FLAGS_NOREAD      1
    6161
    62 typedef uint64_t bn_t;  /**< Block number type. */
     62typedef unsigned bn_t;  /**< Block number type. */
    6363
    6464typedef struct block {
     
    6969        /** If true, the block needs to be written back to the block device. */
    7070        bool dirty;
    71         /** If true, the blcok does not contain valid data. */
    72         bool toxic;
    7371        /** Readers / Writer lock protecting the contents of the block. */
    7472        fibril_rwlock_t contents_lock;
     
    9896extern void block_fini(dev_handle_t);
    9997
    100 extern int block_bb_read(dev_handle_t, bn_t);
     98extern int block_bb_read(dev_handle_t, off_t, size_t);
    10199extern void *block_bb_get(dev_handle_t);
    102100
    103101extern int block_cache_init(dev_handle_t, size_t, unsigned, enum cache_mode);
    104102
    105 extern int block_get(block_t **, dev_handle_t, bn_t, int);
    106 extern int block_put(block_t *);
     103extern block_t *block_get(dev_handle_t, bn_t, int);
     104extern void block_put(block_t *);
    107105
    108106extern int block_seqread(dev_handle_t, off_t *, size_t *, off_t *, void *,
    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 *);
     107    size_t, size_t);
    114108
    115109#endif
Note: See TracChangeset for help on using the changeset viewer.