Changeset 6c8d267 in mainline for uspace/lib/libblock/libblock.h


Ignore:
Timestamp:
2008-11-09T14:12:20Z (16 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
913a821c
Parents:
24d6efc
Message:

Simplify the fat_cluster_walk() interface.
Introduce the bn_t type for holding block offsets.

File:
1 edited

Legend:

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

    r24d6efc r6c8d267  
    4545#include <libadt/list.h>
    4646
     47typedef unsigned bn_t;  /**< Block number type. */
     48
    4749typedef struct block {
    4850        /** Futex protecting the reference count. */
     
    5759        dev_handle_t dev_handle;
    5860        /** Block offset on the block device. Counted in 'size'-byte blocks. */
    59         off_t boff;
     61        bn_t boff;
    6062        /** Size of the block. */
    6163        size_t size;
     
    7678extern int block_cache_init(dev_handle_t, size_t, unsigned);
    7779
    78 extern block_t *block_get(dev_handle_t, off_t);
     80extern block_t *block_get(dev_handle_t, bn_t);
    7981extern void block_put(block_t *);
    8082
Note: See TracChangeset for help on using the changeset viewer.