[NET]: Introduce SIOCGSTAMPNS ioctl to get timestamps with nanosec resolution
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>
Showing
- fs/compat_ioctl.c 18 additions, 0 deletionsfs/compat_ioctl.c
- include/asm-alpha/sockios.h 2 additions, 1 deletioninclude/asm-alpha/sockios.h
- include/asm-arm/sockios.h 2 additions, 1 deletioninclude/asm-arm/sockios.h
- include/asm-arm26/sockios.h 2 additions, 1 deletioninclude/asm-arm26/sockios.h
- include/asm-avr32/sockios.h 2 additions, 1 deletioninclude/asm-avr32/sockios.h
- include/asm-cris/sockios.h 2 additions, 1 deletioninclude/asm-cris/sockios.h
- include/asm-frv/sockios.h 2 additions, 1 deletioninclude/asm-frv/sockios.h
- include/asm-h8300/sockios.h 2 additions, 1 deletioninclude/asm-h8300/sockios.h
- include/asm-i386/sockios.h 2 additions, 1 deletioninclude/asm-i386/sockios.h
- include/asm-ia64/sockios.h 2 additions, 1 deletioninclude/asm-ia64/sockios.h
- include/asm-m32r/sockios.h 2 additions, 1 deletioninclude/asm-m32r/sockios.h
- include/asm-m68k/sockios.h 2 additions, 1 deletioninclude/asm-m68k/sockios.h
- include/asm-mips/sockios.h 2 additions, 1 deletioninclude/asm-mips/sockios.h
- include/asm-parisc/sockios.h 2 additions, 1 deletioninclude/asm-parisc/sockios.h
- include/asm-powerpc/sockios.h 2 additions, 1 deletioninclude/asm-powerpc/sockios.h
- include/asm-s390/sockios.h 2 additions, 1 deletioninclude/asm-s390/sockios.h
- include/asm-sh/sockios.h 2 additions, 1 deletioninclude/asm-sh/sockios.h
- include/asm-sh64/sockios.h 2 additions, 1 deletioninclude/asm-sh64/sockios.h
- include/asm-sparc/sockios.h 2 additions, 1 deletioninclude/asm-sparc/sockios.h
- include/asm-sparc64/sockios.h 2 additions, 1 deletioninclude/asm-sparc64/sockios.h
Loading
Please register or sign in to comment