10 #ifndef _RTEMS_DEVFS_H 11 #define _RTEMS_DEVFS_H 39 rtems_device_major_number
major;
41 rtems_device_minor_number
minor;
69 static inline const devFS_data *devFS_get_data(
73 return (
const devFS_data *) loc->mt_entry->immutable_fs_info;
166 ioctl_command_t command,
mode_t mode
Definition: devfs.h:43
ssize_t devFS_write(rtems_libio_t *iop, const void *buffer, size_t count)
Writes Operation to rtems_io_write.
Definition: devwrite.c:22
void devFS_Show(void)
Retrieves and Prints all the Device Registered in System.
Definition: devfs_show.c:22
int devFS_stat(const rtems_filesystem_location_info_t *loc, struct stat *buf)
Gets the Device File Information.
Definition: devstat.c:20
File system node operations table.
Definition: libio.h:1005
int devFS_mknod(const rtems_filesystem_location_info_t *parentloc, const char *name, size_t namelen, mode_t mode, dev_t dev)
Creates an item in the main device table.
Definition: devfs_mknod.c:24
const rtems_filesystem_file_handlers_r devFS_file_handlers
Definition: devfs_init.c:42
void devFS_eval_path(rtems_filesystem_eval_path_context_t *ctx)
Evaluate Path.
Definition: devfs_eval.c:55
const char * name
Definition: devfs.h:35
ssize_t devFS_read(rtems_libio_t *iop, void *buffer, size_t count)
Maps Read Operation to rtems_io_read.
Definition: devread.c:22
Per Device Node Control Structure.
Definition: devfs.h:33
Mount table entry.
Definition: libio.h:1606
size_t namelen
Definition: devfs.h:37
File system operations table.
Definition: libio.h:472
LibIO Internal Interface.
rtems_device_major_number major
Definition: devfs.h:39
Path evaluation context.
Definition: libio.h:84
int devFS_close(rtems_libio_t *iop)
Maps Close Operation to rtems_io_close.
Definition: devclose.c:22
An open file data structure.
Definition: libio.h:1320
int devFS_ioctl(rtems_libio_t *iop, ioctl_command_t command, void *buffer)
Maps ioctl Operation to rtems_io_ioctl.
Definition: devioctl.c:22
const rtems_filesystem_operations_table devFS_ops
Definition: devfs_init.c:20
int devFS_initialize(rtems_filesystem_mount_table_entry_t *mt_entry, const void *data)
Creates the Main Device Table.
Definition: devfs_init.c:61
rtems_device_minor_number minor
Definition: devfs.h:41
File system location.
Definition: fs.h:53
int devFS_open(rtems_libio_t *iop, const char *pathname, int oflag, mode_t mode)
Maps Open Operation to rtems_io_open.
Definition: devopen.c:22