From a9c12422ff2b4d8c4aec3d940302fc61b4ee39f7 Mon Sep 17 00:00:00 2001 From: darylm503 Date: Thu, 20 Sep 2012 21:01:21 +0000 Subject: StdLib, StdLibPrivateInternalFiles: Clean up comments, Remove debugging code, Define MAX_OUTPUT, the Maximum number of bytes in a single terminal output operation. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Daryl McDaniel Reviewed-by: Jaben Carsey git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13735 6f19259b-4bc3-4df7-8a09-765794883524 --- StdLibPrivateInternalFiles/Include/kfile.h | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'StdLibPrivateInternalFiles/Include') 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 */ -- cgit v1.2.3