]> git.baikalelectronics.ru Git - kernel.git/commit
net: add sock_set_sndtimeo
authorChristoph Hellwig <hch@lst.de>
Thu, 28 May 2020 05:12:12 +0000 (07:12 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 May 2020 18:11:44 +0000 (11:11 -0700)
commit029fc5a6acb55a6cacbc0e67b40232b93fa8d41b
treea10c068a03d52142e83659f975fc0eadf73e4ff2
parent7bd0e2f3e6ef8ca491a2190ceafb0f374ac1ba38
net: add sock_set_sndtimeo

Add a helper to directly set the SO_SNDTIMEO_NEW sockopt from kernel
space without going through a fake uaccess.  The interface is
simplified to only pass the seconds value, as that is the only
thing needed at the moment.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
fs/dlm/lowcomms.c
include/net/sock.h
net/core/sock.c