Changeset 84ab4fce in rtems


Ignore:
Timestamp:
May 11, 2012, 11:04:26 AM (7 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
86ef0df
Parents:
3d0c96c7
git-author:
Sebastian Huber <sebastian.huber@…> (05/11/12 11:04:26)
git-committer:
Sebastian Huber <sebastian.huber@…> (05/11/12 11:58:43)
Message:

libblock: Add RTEMS_BLKIO_PURGEDEV

Location:
cpukit/libblock
Files:
2 edited

Legend:

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

    r3d0c96c7 r84ab4fce  
    163163#define RTEMS_BLKIO_CAPABILITIES    _IO('B', 8)
    164164#define RTEMS_BLKIO_GETDISKDEV      _IOR('B', 9, rtems_disk_device *)
     165#define RTEMS_BLKIO_PURGEDEV        _IO('B', 10)
    165166
    166167/** @} */
     
    203204{
    204205  return ioctl(fd, RTEMS_BLKIO_SYNCDEV);
     206}
     207
     208static inline int rtems_disk_fd_purge(int fd)
     209{
     210  return ioctl(fd, RTEMS_BLKIO_PURGEDEV);
    205211}
    206212
  • cpukit/libblock/src/blkdev-ioctl.c

    r3d0c96c7 r84ab4fce  
    6161            break;
    6262
     63        case RTEMS_BLKIO_PURGEDEV:
     64            rtems_bdbuf_purge_dev(dd);
     65            break;
     66
    6367        default:
    6468            errno = EINVAL;
Note: See TracChangeset for help on using the changeset viewer.