Changeset 7d4a859 in rtems for cpukit/libblock


Ignore:
Timestamp:
Jun 12, 2012, 6:54:19 AM (8 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
9f527308
Parents:
2d7ae960
git-author:
Sebastian Huber <sebastian.huber@…> (06/12/12 06:54:19)
git-committer:
Sebastian Huber <sebastian.huber@…> (06/12/12 08:12:40)
Message:

libblock: Remove const qualifier

This allows addtion of per disk statistics for example.

Location:
cpukit/libblock
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libblock/include/rtems/bdbuf.h

    r2d7ae960 r7d4a859  
    319319  } avl;
    320320
    321   const rtems_disk_device *dd;  /**< disk device */
     321  rtems_disk_device *dd;        /**< disk device */
    322322
    323323  rtems_blkdev_bnum block;      /**< block number on the device */
  • cpukit/libblock/src/bdbuf.c

    r2d7ae960 r7d4a859  
    5959{
    6060  rtems_chain_control   bds;         /**< The transfer list of BDs. */
    61   const rtems_disk_device *dd;       /**< The device the transfer is for. */
     61  rtems_disk_device    *dd;          /**< The device the transfer is for. */
    6262  bool                  syncing;     /**< The data is a sync'ing. */
    6363  rtems_blkdev_request* write_req;   /**< The write request array. */
     
    114114  bool                sync_active;       /**< True if a sync is active. */
    115115  rtems_id            sync_requester;    /**< The sync requester. */
    116   const rtems_disk_device *sync_device;  /**< The device to sync and
     116  rtems_disk_device  *sync_device;       /**< The device to sync and
    117117                                          * BDBUF_INVALID_DEV not a device
    118118                                          * sync. */
     
    12241224static void
    12251225rtems_bdbuf_setup_empty_buffer (rtems_bdbuf_buffer *bd,
    1226                                 const rtems_disk_device *dd,
     1226                                rtems_disk_device *dd,
    12271227                                rtems_blkdev_bnum   block)
    12281228{
     
    12401240
    12411241static rtems_bdbuf_buffer *
    1242 rtems_bdbuf_get_buffer_from_lru_list (const rtems_disk_device *dd,
    1243                                       rtems_blkdev_bnum block)
     1242rtems_bdbuf_get_buffer_from_lru_list (rtems_disk_device *dd,
     1243                                      rtems_blkdev_bnum  block)
    12441244{
    12451245  rtems_chain_node *node = rtems_chain_first (&bdbuf_cache.lru);
     
    17081708
    17091709static rtems_bdbuf_buffer *
    1710 rtems_bdbuf_get_buffer_for_read_ahead (const rtems_disk_device *dd,
    1711                                        rtems_blkdev_bnum block)
     1710rtems_bdbuf_get_buffer_for_read_ahead (rtems_disk_device *dd,
     1711                                       rtems_blkdev_bnum  block)
    17121712{
    17131713  rtems_bdbuf_buffer *bd = NULL;
     
    17331733
    17341734static rtems_bdbuf_buffer *
    1735 rtems_bdbuf_get_buffer_for_access (const rtems_disk_device *dd,
    1736                                    rtems_blkdev_bnum block)
     1735rtems_bdbuf_get_buffer_for_access (rtems_disk_device *dd,
     1736                                   rtems_blkdev_bnum  block)
    17371737{
    17381738  rtems_bdbuf_buffer *bd = NULL;
     
    18751875
    18761876static rtems_status_code
    1877 rtems_bdbuf_execute_transfer_request (const rtems_disk_device *dd,
    1878                                       rtems_blkdev_request    *req,
    1879                                       bool                     cache_locked)
     1877rtems_bdbuf_execute_transfer_request (rtems_disk_device    *dd,
     1878                                      rtems_blkdev_request *req,
     1879                                      bool                  cache_locked)
    18801880{
    18811881  rtems_status_code sc = RTEMS_SUCCESSFUL;
     
    19371937
    19381938static rtems_status_code
    1939 rtems_bdbuf_execute_read_request (const rtems_disk_device *dd,
    1940                                   rtems_bdbuf_buffer      *bd,
    1941                                   uint32_t                 transfer_count)
     1939rtems_bdbuf_execute_read_request (rtems_disk_device *dd,
     1940                                  rtems_bdbuf_buffer *bd,
     1941                                  uint32_t            transfer_count)
    19421942{
    19431943  rtems_blkdev_request *req = NULL;
     
    22862286    uint32_t bufs_per_bd = 0;
    22872287
    2288     const rtems_disk_device *dd = transfer->dd;
     2288    rtems_disk_device *dd = transfer->dd;
    22892289
    22902290    bufs_per_bd = dd->block_size / bdbuf_config.buffer_min;
     
    23852385 */
    23862386static void
    2387 rtems_bdbuf_swapout_modified_processing (const rtems_disk_device **dd_ptr,
     2387rtems_bdbuf_swapout_modified_processing (rtems_disk_device **dd_ptr,
    23882388                                         rtems_chain_control* chain,
    23892389                                         rtems_chain_control* transfer,
Note: See TracChangeset for help on using the changeset viewer.