iPXE
Data Fields
cpio_header Struct Reference

A CPIO archive header. More...

#include <cpio.h>

Data Fields

char c_magic [6]
 The string "070701" or "070702".
char c_ino [8]
 File inode number.
char c_mode [8]
 File mode and permissions.
char c_uid [8]
 File uid.
char c_gid [8]
 File gid.
char c_nlink [8]
 Number of links.
char c_mtime [8]
 Modification time.
char c_filesize [8]
 Size of data field.
char c_maj [8]
 Major part of file device number.
char c_min [8]
 Minor part of file device number.
char c_rmaj [8]
 Major part of device node reference.
char c_rmin [8]
 Minor part of device node reference.
char c_namesize [8]
 Length of filename, including final NUL.
char c_chksum [8]
 Checksum of data field if c_magic is 070702, othersize zero.

Detailed Description

A CPIO archive header.

All field are hexadecimal ASCII numbers padded with '0' on the left to the full width of the field.

Definition at line 17 of file cpio.h.


Field Documentation

The string "070701" or "070702".

Definition at line 19 of file cpio.h.

Referenced by bzimage_load_initrd().

File inode number.

Definition at line 21 of file cpio.h.

File mode and permissions.

Definition at line 23 of file cpio.h.

Referenced by bzimage_load_initrd(), and bzimage_parse_cpio_cmdline().

File uid.

Definition at line 25 of file cpio.h.

File gid.

Definition at line 27 of file cpio.h.

Number of links.

Definition at line 29 of file cpio.h.

Referenced by bzimage_load_initrd().

Modification time.

Definition at line 31 of file cpio.h.

Size of data field.

Definition at line 33 of file cpio.h.

Referenced by bzimage_load_initrd().

Major part of file device number.

Definition at line 35 of file cpio.h.

Minor part of file device number.

Definition at line 37 of file cpio.h.

Major part of device node reference.

Definition at line 39 of file cpio.h.

Minor part of device node reference.

Definition at line 41 of file cpio.h.

Length of filename, including final NUL.

Definition at line 43 of file cpio.h.

Referenced by bzimage_load_initrd().

Checksum of data field if c_magic is 070702, othersize zero.

Definition at line 45 of file cpio.h.


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