OSDN Git Service

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)
commitba423fdaa589d972473083defedf9e862626d268
treebfd415418622157132ec517b894463a783580001
parentd200cf624c9247ab52b67d34d9e198262a23df31
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]