mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
[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 <[email protected]> CC: Stephen Hemminger <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
cb69cc5236
commit
ae40eb1ef3
37 changed files with 146 additions and 22 deletions
|
|
@ -1711,6 +1711,10 @@ static int ax25_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
|
|||
res = sock_get_timestamp(sk, argp);
|
||||
break;
|
||||
|
||||
case SIOCGSTAMPNS:
|
||||
res = sock_get_timestampns(sk, argp);
|
||||
break;
|
||||
|
||||
case SIOCAX25ADDUID: /* Add a uid to the uid/call map table */
|
||||
case SIOCAX25DELUID: /* Delete a uid from the uid/call map table */
|
||||
case SIOCAX25GETUID: {
|
||||
|
|
|
|||
Loading…
Reference in a new issue