RTEMS: cpukit/include/rtems/deviceio.h Source File

| RTEMS 5.4-rc2

Loading...
Searching...
No Matches
deviceio.h
Go to the documentation of this file.
1
7/*
8 * COPYRIGHT (c) 1989-2012.
9 * On-Line Applications Research Corporation (OAR).
10 *
11 * The license and distribution terms for this file may be
12 * found in the file LICENSE in this distribution or at
13 * http://www.rtems.org/license/LICENSE.
14 */
15
16#ifndef _RTEMS_DEVICEIO_H
17#define _RTEMS_DEVICEIO_H
18
19#include <rtems/libio.h>
20
30#ifdef __cplusplus
31extern "C" {
32#endif /* __cplusplus */
33
42int rtems_deviceio_open(
43 rtems_libio_t *iop,
44 const char *path,
45 int oflag,
46 mode_t mode,
47 rtems_device_major_number major,
48 rtems_device_minor_number minor
49);
50
51int rtems_deviceio_close(
52 rtems_libio_t *iop,
53 rtems_device_major_number major,
54 rtems_device_minor_number minor
55);
56
57ssize_t rtems_deviceio_read(
58 rtems_libio_t *iop,
59 void *buf,
60 size_t nbyte,
61 rtems_device_major_number major,
62 rtems_device_minor_number minor
63);
64
65ssize_t rtems_deviceio_write(
66 rtems_libio_t *iop,
67 const void *buf,
68 size_t nbyte,
69 rtems_device_major_number major,
70 rtems_device_minor_number minor
71);
72
73int rtems_deviceio_control(
74 rtems_libio_t *iop,
75 ioctl_command_t command,
76 void *buffer,
77 rtems_device_major_number major,
78 rtems_device_minor_number minor
79);
80
81#ifdef __cplusplus
82}
83#endif
84/* __cplusplus */
85
88#endif /* _RTEMS_DEVICEIO_H */
rtems_deviceio_open
int rtems_deviceio_open(rtems_libio_t *iop, const char *path, int oflag, mode_t mode, rtems_device_major_number major, rtems_device_minor_number minor)
IMFS device node handlers.
Definition: sup_fs_deviceio.c:24
libio.h
Basic IO API.
rtems_libio_tt
An open file data structure.
Definition: libio.h:1320