Ignore:
File:
1 edited

Legend:

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

    ra6ba0c9 r63f8966  
    7272        fibril_rwlock_t contents_lock;
    7373        /** Handle of the device where the block resides. */
    74         devmap_handle_t devmap_handle;
    75         /** Logical block address */
    76         aoff64_t lba;
    77         /** Physical block address */
    78         aoff64_t pba;
     74        dev_handle_t dev_handle;
     75        /** Block offset on the block device. Counted in 'size'-byte blocks. */
     76        aoff64_t boff;
    7977        /** Size of the block. */
    8078        size_t size;
     
    9593};
    9694
    97 extern int block_init(devmap_handle_t, size_t);
    98 extern void block_fini(devmap_handle_t);
     95extern int block_init(dev_handle_t, size_t);
     96extern void block_fini(dev_handle_t);
    9997
    100 extern int block_bb_read(devmap_handle_t, aoff64_t);
    101 extern void *block_bb_get(devmap_handle_t);
     98extern int block_bb_read(dev_handle_t, aoff64_t);
     99extern void *block_bb_get(dev_handle_t);
    102100
    103 extern int block_cache_init(devmap_handle_t, size_t, unsigned, enum cache_mode);
    104 extern int block_cache_fini(devmap_handle_t);
     101extern int block_cache_init(dev_handle_t, size_t, unsigned, enum cache_mode);
     102extern int block_cache_fini(dev_handle_t);
    105103
    106 extern int block_get(block_t **, devmap_handle_t, aoff64_t, int);
     104extern int block_get(block_t **, dev_handle_t, aoff64_t, int);
    107105extern int block_put(block_t *);
    108106
    109 extern int block_seqread(devmap_handle_t, size_t *, size_t *, aoff64_t *, void *,
     107extern int block_seqread(dev_handle_t, size_t *, size_t *, aoff64_t *, void *,
    110108    size_t);
    111109
    112 extern int block_get_bsize(devmap_handle_t, size_t *);
    113 extern int block_get_nblocks(devmap_handle_t, aoff64_t *);
    114 extern int block_read_direct(devmap_handle_t, aoff64_t, size_t, void *);
    115 extern int block_write_direct(devmap_handle_t, aoff64_t, size_t, const void *);
     110extern int block_get_bsize(dev_handle_t, size_t *);
     111extern int block_get_nblocks(dev_handle_t, aoff64_t *);
     112extern int block_read_direct(dev_handle_t, aoff64_t, size_t, void *);
     113extern int block_write_direct(dev_handle_t, aoff64_t, size_t, const void *);
    116114
    117115#endif
Note: See TracChangeset for help on using the changeset viewer.