/** @file\r
The EFI kernel's interpretation of a "file".\r
\r
- Copyright (c) 2011, Intel Corporation. All rights reserved.<BR>\r
+ Copyright (c) 2012, Intel Corporation. All rights reserved.<BR>\r
This program and the accompanying materials are licensed and made available\r
under the terms and conditions of the BSD License which accompanies this\r
distribution. The full text of the license may be found at\r
struct __filedes {\r
off_t f_offset; /* current position in file */\r
const struct fileops *f_ops;\r
+\r
+ /* The devdata member has different meanings depending upon whether\r
+ a block oriented or character oriented device is being accessed.\r
+ For block devices, devdata holds an EFI handle to the open file or directory.\r
+ For character devices, devdata points to the device's IIO structure,\r
+ if it has one. It may be NULL indicating a non-interactive character\r
+ device.\r
+ */\r
void *devdata; /* Device-specific data */\r
- int Oflags; // From the open call\r
+ int Oflags; // From the open call, see fcntl.h\r
int Omode; // From the open call\r
int RefCount; // Reference count of opens\r
UINT32 f_flag; /* see fcntl.h */\r