Socket reading and timestamps
问题 When reading from a (non-stream) socket in Linux, I can get the (hardware-generated) timestamp of the last received message via a ioctl(sock, SIOCGSTAMP, &tv) . However, this poses two problems: It is another syscall (I'm receiving about 24000 messages per second, so each syscall is notifiable) If using this approach, I can only read() one message at a time, followed by the ioctl() to get the timestamp. (If I'm reading more than one message in a read() -call, the following ioctl only yields