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 xfer_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 40 of file posix_io.c.


Field Documentation

struct refcnt posix_file::refcnt [read]

Reference count for this object.

Definition at line 42 of file posix_io.c.

Referenced by close(), and open().

struct list_head posix_file::list [read]

List of open files.

Definition at line 44 of file posix_io.c.

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

File descriptor.

Definition at line 46 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 51 of file posix_io.c.

Referenced by open(), posix_file_finished(), read_user(), and select().

Data transfer interface.

Definition at line 53 of file posix_io.c.

Referenced by open(), and posix_file_finished().

Current seek position.

Definition at line 55 of file posix_io.c.

Referenced by posix_file_xfer_deliver_iob(), and read_user().

File size.

Definition at line 57 of file posix_io.c.

Referenced by fsize(), and posix_file_xfer_deliver_iob().

struct list_head posix_file::data [read]

Received data queue.

Definition at line 59 of file posix_io.c.

Referenced by open(), posix_file_free(), posix_file_xfer_deliver_iob(), read_user(), and select().


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

Generated on Tue Apr 6 20:02:07 2010 for gPXE by  doxygen 1.5.7.1