Changeset 7858bc5f in mainline for uspace/lib/libblock/libblock.h


Ignore:
Timestamp:
2008-10-28T15:40:19Z (16 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
916bf1a
Parents:
5cf723b
Message:

Setup communication parameters with the block device in block_init(). The file
system now doesn't know anything about the communication with the block device.
Rename blockread() to block_read(). The boot block is now read only once. The file
system can get access it using the block_bb_get() function.

File:
1 edited

Legend:

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

    r5cf723b r7858bc5f  
    6868} block_t;
    6969
    70 extern int dev_phone;           /* FIXME */
    71 extern void *dev_buffer;        /* FIXME */
     70extern int block_init(dev_handle_t, size_t, off_t, size_t);
     71extern void block_fini(dev_handle_t);
     72extern void *block_bb_get(dev_handle_t);
    7273
    7374extern block_t *block_get(dev_handle_t, off_t, size_t);
    7475extern void block_put(block_t *);
    7576
    76 extern bool blockread(int, void *, off_t *, size_t *, off_t *, void *, size_t,
    77     size_t);
     77extern bool block_read(int, off_t *, size_t *, off_t *, void *, size_t, size_t);
    7878
    7979#endif
Note: See TracChangeset for help on using the changeset viewer.