mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-06 02:50:43 +00:00
![Eric Dumazet](/assets/img/avatar_default.png)
Now network timestamps use ktime_t infrastructure, we can add a new ioctl() SIOCGSTAMPNS command to get timestamps in 'struct timespec'. User programs can thus access to nanosecond resolution. Signed-off-by: Eric Dumazet <dada1@cosmosbay.com> CC: Stephen Hemminger <shemminger@linux-foundation.org> Signed-off-by: David S. Miller <davem@davemloft.net>
14 lines
473 B
C
14 lines
473 B
C
#ifndef __ASM_SH_SOCKIOS_H
|
|
#define __ASM_SH_SOCKIOS_H
|
|
|
|
/* Socket-level I/O control calls. */
|
|
#define FIOGETOWN _IOR('f', 123, int)
|
|
#define FIOSETOWN _IOW('f', 124, int)
|
|
|
|
#define SIOCATMARK _IOR('s', 7, int)
|
|
#define SIOCSPGRP _IOW('s', 8, pid_t)
|
|
#define SIOCGPGRP _IOR('s', 9, pid_t)
|
|
|
|
#define SIOCGSTAMP _IOR('s', 100, struct timeval) /* Get stamp (timeval) */
|
|
#define SIOCGSTAMPNS _IOR('s', 101, struct timespec) /* Get stamp (timespec) */
|
|
#endif /* __ASM_SH_SOCKIOS_H */
|