char buf[BUF_LEN]_attribute_((aligned(4))); ssize_t len, i = 0; /* read BUF_LEN bytes\' worth of events */ len = read (fd, buf, BUF_LEN); /* loop over every read event u
This aligns the memory allocated to buf on a 4-byte boundary. This can speed memory transfers between the CPU and main memory among other things.