iPXE
|
An open file. More...
Data Fields | |
struct refcnt | refcnt |
Reference count for this object. More... | |
struct list_head | list |
List of open files. More... | |
int | fd |
File descriptor. More... | |
int | rc |
Overall status. More... | |
struct interface | xfer |
Data transfer interface. More... | |
size_t | pos |
Current seek position. More... | |
size_t | filesize |
File size. More... | |
struct list_head | data |
Received data queue. More... | |
An open file.
Definition at line 46 of file posix_io.c.
struct refcnt posix_file::refcnt |
Reference count for this object.
Definition at line 48 of file posix_io.c.
struct list_head posix_file::list |
List of open files.
Definition at line 50 of file posix_io.c.
Referenced by close(), open(), and posix_fd_to_file().
int posix_file::fd |
File descriptor.
Definition at line 52 of file posix_io.c.
Referenced by close(), fsize(), open(), posix_fd_to_file(), posix_find_free_fd(), and select().
int posix_file::rc |
Overall status.
Set to -EINPROGRESS while data transfer is in progress.
Definition at line 57 of file posix_io.c.
Referenced by open(), posix_file_finished(), read_user(), and select().
struct interface posix_file::xfer |
Data transfer interface.
Definition at line 59 of file posix_io.c.
Referenced by open(), and posix_file_finished().
size_t posix_file::pos |
Current seek position.
Definition at line 61 of file posix_io.c.
Referenced by posix_file_xfer_deliver(), and read_user().
size_t posix_file::filesize |
File size.
Definition at line 63 of file posix_io.c.
Referenced by fsize(), and posix_file_xfer_deliver().
struct list_head posix_file::data |
Received data queue.
Definition at line 65 of file posix_io.c.
Referenced by open(), posix_file_free(), posix_file_xfer_deliver(), read_user(), and select().