]> git.baikalelectronics.ru Git - kernel.git/commit
net_tstamp: Add SIOCGHWTSTAMP ioctl to match SIOCSHWTSTAMP
authorBen Hutchings <bhutchings@solarflare.com>
Thu, 14 Nov 2013 01:19:29 +0000 (01:19 +0000)
committerBen Hutchings <bhutchings@solarflare.com>
Tue, 19 Nov 2013 19:07:21 +0000 (19:07 +0000)
commitea79e5ffdcad7e8c1fbcd29ae4814b5b6a9441cc
treec68b11620237ba704b740827ce952409b5666231
parent8b6c4cd4eb9efcd6add19e3bf6d57340cfc78493
net_tstamp: Add SIOCGHWTSTAMP ioctl to match SIOCSHWTSTAMP

SIOCSHWTSTAMP returns the real configuration to the application
using it, but there is currently no way for any other
application to find out the configuration non-destructively.
Add a new ioctl for this, making it unprivileged.

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Documentation/networking/timestamping.txt
include/uapi/linux/net_tstamp.h
include/uapi/linux/sockios.h
net/core/dev_ioctl.c
net/socket.c