|
iPXE
|
Disk log console. More...
Go to the source code of this file.
Data Structures | |
| struct | disklog_header |
| Disk log partition header. More... | |
| struct | disklog |
| A disk log. More... | |
| struct | disklog_operations |
| Disk log operations. More... | |
Macros | |
| #define | DISKLOG_PARTITION_TYPE 0xe0 |
| Disk log partition type. | |
| #define | DISKLOG_MAGIC "iPXE LOG\n\n" |
| Disk log partition magic signature. | |
| #define | DISKLOG_MAX_UNWRITTEN 64 |
| Maximum number of outstanding unwritten characters. | |
Functions | |
| FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
| FILE_SECBOOT (PERMITTED) | |
| static void | disklog_init (struct disklog *disklog, struct disklog_operations *op, struct console_driver *console, void *buffer, size_t blksize, uint64_t lba, uint64_t max_lba) |
| Initialise disk log console. | |
| int | disklog_open (struct disklog *disklog) |
| Open disk log console. | |
| void | disklog_putchar (struct disklog *disklog, int character) |
| Write character to disk log console. | |
Disk log console.
Definition in file disklog.h.
| #define DISKLOG_PARTITION_TYPE 0xe0 |
Disk log partition type.
Definition at line 84 of file disklog.h.
Referenced by efi_disklog_open(), and int13con_find().
| #define DISKLOG_MAGIC "iPXE LOG\n\n" |
Disk log partition magic signature.
Definition at line 87 of file disklog.h.
Referenced by disklog_open().
| #define DISKLOG_MAX_UNWRITTEN 64 |
Maximum number of outstanding unwritten characters.
Definition at line 90 of file disklog.h.
Referenced by disklog_putchar().
| FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
| FILE_SECBOOT | ( | PERMITTED | ) |
|
inlinestatic |
Initialise disk log console.
| disklog | Disk log |
| op | Disk log operations |
| console | Console device |
| buffer | Data buffer |
| blksize | Logical block size |
| lba | Starting logical block index |
| max_lba | Maximum logical block index |
Definition at line 66 of file disklog.h.
References blksize, disklog::blksize, buffer, disklog::buffer, disklog::console, disklog::lba, lba, disklog::max_lba, disklog::op, and op.
Referenced by efi_disklog_open(), and int13con_find().
|
extern |
Open disk log console.
| disklog | Disk log |
| rc | Return status code |
The data buffer must already contain the initial logical block.
Definition at line 46 of file disklog.c.
References assert, disklog::blksize, disklog::buffer, disklog::console, DBGC, console_driver::disabled, DISKLOG_MAGIC, EINVAL, hdr, disklog::lba, disklog::max_lba, memcmp(), memset(), NULL, disklog::offset, disklog::op, disklog::unwritten, and disklog_operations::write.
Referenced by efi_disklog_open(), and int13con_find().
|
extern |
Write character to disk log console.
| disklog | Disk log |
| character | Character |
Definition at line 85 of file disklog.c.
References assert, disklog::blksize, disklog::buffer, disklog::console, DBGC, console_driver::disabled, DISKLOG_MAX_UNWRITTEN, disklog::lba, disklog::max_lba, memset(), disklog::offset, disklog::op, rc, strerror(), disklog::unwritten, and disklog_operations::write.
Referenced by efi_disklog_putchar(), and int13con_putchar().