X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=StdLibPrivateInternalFiles%2FInclude%2Fkfile.h;h=6312895c40449b23cd8d5497353954716cf77567;hp=6e7d1b4c79821d72119ae70566a9f59832f97939;hb=a9c12422ff2b4d8c4aec3d940302fc61b4ee39f7;hpb=2ca8548911013db4211172e8546fcff3db27f302 diff --git a/StdLibPrivateInternalFiles/Include/kfile.h b/StdLibPrivateInternalFiles/Include/kfile.h index 6e7d1b4c79..6312895c40 100644 --- a/StdLibPrivateInternalFiles/Include/kfile.h +++ b/StdLibPrivateInternalFiles/Include/kfile.h @@ -1,7 +1,7 @@ /** @file The EFI kernel's interpretation of a "file". - Copyright (c) 2011, Intel Corporation. All rights reserved.
+ Copyright (c) 2012, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -82,8 +82,16 @@ struct _Device_Node; struct __filedes { off_t f_offset; /* current position in file */ const struct fileops *f_ops; + + /* The devdata member has different meanings depending upon whether + a block oriented or character oriented device is being accessed. + For block devices, devdata holds an EFI handle to the open file or directory. + For character devices, devdata points to the device's IIO structure, + if it has one. It may be NULL indicating a non-interactive character + device. + */ void *devdata; /* Device-specific data */ - int Oflags; // From the open call + int Oflags; // From the open call, see fcntl.h int Omode; // From the open call int RefCount; // Reference count of opens UINT32 f_flag; /* see fcntl.h */