iPXE
Data Fields
posix_file Struct Reference

An open file. More...

Data Fields

struct refcnt refcnt
 Reference count for this object.
struct list_head list
 List of open files.
int fd
 File descriptor.
int rc
 Overall status.
struct interface xfer
 Data transfer interface.
size_t pos
 Current seek position.
size_t filesize
 File size.
struct list_head data
 Received data queue.

Detailed Description

An open file.

Definition at line 46 of file posix_io.c.


Field Documentation

Reference count for this object.

Definition at line 48 of file posix_io.c.

Referenced by close(), and open().

List of open files.

Definition at line 50 of file posix_io.c.

Referenced by close(), open(), and posix_fd_to_file().

File descriptor.

Definition at line 52 of file posix_io.c.

Referenced by open(), posix_fd_to_file(), posix_find_free_fd(), and select().

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().

Data transfer interface.

Definition at line 59 of file posix_io.c.

Referenced by open(), and posix_file_finished().

Current seek position.

Definition at line 61 of file posix_io.c.

Referenced by posix_file_xfer_deliver(), and read_user().

File size.

Definition at line 63 of file posix_io.c.

Referenced by fsize(), and posix_file_xfer_deliver().

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().


The documentation for this struct was generated from the following file: