CS318 - Pintos
Pintos source browser for JHU CS318 course
Macros
packed.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define PACKED   __attribute__ ((packed))
 The "packed" attribute, when applied to a structure, prevents GCC from inserting padding bytes between or after structure members. More...
 

Macro Definition Documentation

◆ PACKED

#define PACKED   __attribute__ ((packed))

The "packed" attribute, when applied to a structure, prevents GCC from inserting padding bytes between or after structure members.

It must be specified at the time of the structure's definition, normally just after the closing brace. lib/packed.h

Definition at line 8 of file packed.h.