iPXE
Data Fields
posix_file Struct Reference

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

Detailed Description

An open file.

Definition at line 46 of file posix_io.c.

Field Documentation

◆ refcnt

struct refcnt posix_file::refcnt

Reference count for this object.

Definition at line 48 of file posix_io.c.

Referenced by close(), and open().

◆ list

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

◆ fd

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

◆ rc

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

◆ xfer

struct interface posix_file::xfer

Data transfer interface.

Definition at line 59 of file posix_io.c.

Referenced by open(), and posix_file_finished().

◆ pos

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

◆ filesize

size_t posix_file::filesize

File size.

Definition at line 63 of file posix_io.c.

Referenced by fsize(), and posix_file_xfer_deliver().

◆ data

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


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