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". More...
 
char c_ino [8]
 File inode number. More...
 
char c_mode [8]
 File mode and permissions. More...
 
char c_uid [8]
 File uid. More...
 
char c_gid [8]
 File gid. More...
 
char c_nlink [8]
 Number of links. More...
 
char c_mtime [8]
 Modification time. More...
 
char c_filesize [8]
 Size of data field. More...
 
char c_maj [8]
 Major part of file device number. More...
 
char c_min [8]
 Minor part of file device number. More...
 
char c_rmaj [8]
 Major part of device node reference. More...
 
char c_rmin [8]
 Minor part of device node reference. More...
 
char c_namesize [8]
 Length of filename, including final NUL. More...
 
char c_chksum [8]
 Checksum of data field if c_magic is 070702, othersize zero. More...
 

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

◆ c_magic

char cpio_header::c_magic[6]

The string "070701" or "070702".

Definition at line 19 of file cpio.h.

Referenced by bzimage_load_initrd().

◆ c_ino

char cpio_header::c_ino[8]

File inode number.

Definition at line 21 of file cpio.h.

◆ c_mode

char cpio_header::c_mode[8]

File mode and permissions.

Definition at line 23 of file cpio.h.

Referenced by bzimage_load_initrd(), and bzimage_parse_cpio_cmdline().

◆ c_uid

char cpio_header::c_uid[8]

File uid.

Definition at line 25 of file cpio.h.

◆ c_gid

char cpio_header::c_gid[8]

File gid.

Definition at line 27 of file cpio.h.

◆ c_nlink

char cpio_header::c_nlink[8]

Number of links.

Definition at line 29 of file cpio.h.

Referenced by bzimage_load_initrd().

◆ c_mtime

char cpio_header::c_mtime[8]

Modification time.

Definition at line 31 of file cpio.h.

◆ c_filesize

char cpio_header::c_filesize[8]

Size of data field.

Definition at line 33 of file cpio.h.

Referenced by bzimage_load_initrd().

◆ c_maj

char cpio_header::c_maj[8]

Major part of file device number.

Definition at line 35 of file cpio.h.

◆ c_min

char cpio_header::c_min[8]

Minor part of file device number.

Definition at line 37 of file cpio.h.

◆ c_rmaj

char cpio_header::c_rmaj[8]

Major part of device node reference.

Definition at line 39 of file cpio.h.

◆ c_rmin

char cpio_header::c_rmin[8]

Minor part of device node reference.

Definition at line 41 of file cpio.h.

◆ c_namesize

char cpio_header::c_namesize[8]

Length of filename, including final NUL.

Definition at line 43 of file cpio.h.

Referenced by bzimage_load_initrd().

◆ c_chksum

char cpio_header::c_chksum[8]

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: