Changeset e4f88fc in rtems for cpukit/libblock/src/bdbuf.c

Timestamp:
03/26/12 12:58:35 (12 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Children:
50041a1
Parents:
4de9e69
git-author:
Sebastian Huber <sebastian.huber@…> (03/26/12 12:58:35)
git-committer:
Sebastian Huber <sebastian.huber@…> (04/02/12 08:07:38)
Message:

libblock: Add rtems_bdbuf_set_block_size()

The new function rtems_bdbuf_set_block_size() must be used to set the
block size of a disk device. It will check if the block size is valid
and set the new fields block_to_media_block_shift and bds_per_group of
the rtems_disk_device structure. This helps to avoid complex arithmetic
operations in the block device buffer get and read path.

(No files)

Note: See TracChangeset for help on using the changeset viewer.