]> git.baikalelectronics.ru Git - kernel.git/commit
net: add a new sockptr_t type
authorChristoph Hellwig <hch@lst.de>
Thu, 23 Jul 2020 06:08:46 +0000 (08:08 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 24 Jul 2020 22:41:53 +0000 (15:41 -0700)
commite109cd2683b7929e431af52e91d4bcc864162104
treebfd415418622157132ec517b894463a783580001
parentbb3a30b26554bb3da610ce857f2b9285d2bd59c0
net: add a new sockptr_t type

Add a uptr_t type that can hold a pointer to either a user or kernel
memory region, and simply helpers to copy to and from it.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/sockptr.h [new file with mode: 0644]