source: rtems/cpukit/libfs/src/devfs/devioctl.c @ 339069fc

5
Last change on this file since 339069fc was 339069fc, checked in by Sebastian Huber <sebastian.huber@…>, on 12/13/17 at 07:02:09

devfs: Include <rtems/devfs.h>

Prepare for header file move to common include directory.

Update #3254.

  • Property mode set to 100644
File size: 627 bytes
RevLine 
[9bff3752]1/**
2 * @file
3 *
4 * @brief Maps ioctl Operation to rtems_io_ioctl
5 * @ingroup DevFsDeviceTable Define Device Table Type
6 */
7
[d40da79b]8/*
9 *  The license and distribution terms for this file may be
10 *  found in the file LICENSE in this distribution or at
[c499856]11 *  http://www.rtems.org/license/LICENSE.
[d40da79b]12 */
13
[fed66f99]14#if HAVE_CONFIG_H
15  #include "config.h"
[d40da79b]16#endif
17
[339069fc]18#include <rtems/devfs.h>
[d40da79b]19
[fed66f99]20#include <rtems/deviceio.h>
21
[d40da79b]22int devFS_ioctl(
[df01da67]23  rtems_libio_t   *iop,
24  ioctl_command_t  command,
25  void            *buffer
[d40da79b]26)
27{
[3b7c123]28  const devFS_node *np = iop->pathinfo.node_access;
[d40da79b]29
[fed66f99]30  return rtems_deviceio_control( iop, command, buffer, np->major, np->minor );
[d40da79b]31}
Note: See TracBrowser for help on using the repository browser.