|
iPXE
|
Openable data blobs. More...
#include <string.h>#include <errno.h>#include <ipxe/malloc.h>#include <ipxe/xfer.h>#include <ipxe/process.h>#include <ipxe/blob.h>Go to the source code of this file.
Data Structures | |
| struct | blob |
| An openable data blob. More... | |
Functions | |
| FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
| FILE_SECBOOT (PERMITTED) | |
| static void | blob_close (struct blob *blob, int rc) |
| Close data blob. | |
| static void | blob_step (struct blob *blob) |
| Process data blob. | |
| int | blob_open (struct interface *xfer, const void *data, size_t len) |
| Open data blob. | |
Variables | |
| static struct interface_operation | blob_xfer_op [] |
| Data blob interface operations. | |
| static struct interface_descriptor | blob_xfer_desc |
| Data blob interface descriptor. | |
| static struct process_descriptor | blob_process_desc |
| Data blob process descriptor. | |
Openable data blobs.
Within the iPXE data transfer interface model, openers are fully asynchronous and may not deliver any data until after the opener has returned. An openable data blob provides a way to open an interface that will then simply return a single fixed blob of data.
Definition in file blob.c.
| FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
| FILE_SECBOOT | ( | PERMITTED | ) |
|
static |
Close data blob.
Definition at line 64 of file blob.c.
References intf_shutdown(), blob::process, process_del(), rc, and blob::xfer.
Referenced by blob_step().
|
static |
Process data blob.
| blob | Data blob |
Definition at line 78 of file blob.c.
References blob_close(), blob::data, blob::len, rc, blob::xfer, xfer_deliver_raw(), and xfer_window().
Open data blob.
| rc | Return status code |
Definition at line 110 of file blob.c.
References blob_process_desc, blob_xfer_desc, blob::data, data, ENOMEM, intf_init(), intf_plug_plug(), blob::len, len, memcpy(), NULL, blob::process, process_init(), ref_init, ref_put, blob::refcnt, blob::xfer, and zalloc().
Referenced by datauri_open().
|
static |
Data blob interface operations.
Definition at line 89 of file blob.c.
|
static |
Data blob interface descriptor.
Definition at line 95 of file blob.c.
Referenced by blob_open().
|
static |
Data blob process descriptor.
Definition at line 99 of file blob.c.
Referenced by blob_open().