]> git.baikalelectronics.ru Git - kernel.git/commit
net: Introduce read_pnet() and write_pnet() helpers
authorEric Dumazet <dada1@cosmosbay.com>
Wed, 12 Nov 2008 08:53:30 +0000 (00:53 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 12 Nov 2008 08:53:30 +0000 (00:53 -0800)
commitf95247bf9e06ef17151dbdd7e3adf4a26c9d814d
tree4e481fd6ed7ab82c5d70c30a66842fa432065f64
parent5a77d378fefaec257152e71dc20968298b075303
net: Introduce read_pnet() and write_pnet() helpers

This patch introduces two helpers that deal with reading and writing
struct net pointers in various network structures.

Their implementation depends on CONFIG_NET_NS

For symmetry, both functions work with "struct net **pnet".

Their usage should reduce the number of #ifdef CONFIG_NET_NS,
without adding many helpers for each network structure
that hold a "struct net *pointer"

Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/net_namespace.h