diff options
author | Sjur Braendeland <sjur.brandeland@stericsson.com> | 2010-04-28 04:54:36 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-04-28 15:55:12 -0400 |
commit | 5b2086567503f9b55136642031ec0067319f58e0 (patch) | |
tree | 00c4264ed7a8a989b398166c2c5f98175f5c28a5 /net/caif/caif_dev.c | |
parent | e539d83cc8a4fa581cbf8ed288fdadb19a692cb0 (diff) |
caif: Add reference counting to service layer
Changes:
o Added functions cfsrvl_get and cfsrvl_put.
o Added support release_client to use by socket and net device.
o Increase reference counting for in-flight packets from cfmuxl
Signed-off-by: Sjur Braendeland <sjur.brandeland@stericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/caif/caif_dev.c')
-rw-r--r-- | net/caif/caif_dev.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/net/caif/caif_dev.c b/net/caif/caif_dev.c index be1f674a3b67..0145bae0274f 100644 --- a/net/caif/caif_dev.c +++ b/net/caif/caif_dev.c | |||
@@ -346,6 +346,12 @@ int caif_disconnect_client(struct cflayer *adap_layer) | |||
346 | } | 346 | } |
347 | EXPORT_SYMBOL(caif_disconnect_client); | 347 | EXPORT_SYMBOL(caif_disconnect_client); |
348 | 348 | ||
349 | void caif_release_client(struct cflayer *adap_layer) | ||
350 | { | ||
351 | cfcnfg_release_adap_layer(adap_layer); | ||
352 | } | ||
353 | EXPORT_SYMBOL(caif_release_client); | ||
354 | |||
349 | /* Per-namespace Caif devices handling */ | 355 | /* Per-namespace Caif devices handling */ |
350 | static int caif_init_net(struct net *net) | 356 | static int caif_init_net(struct net *net) |
351 | { | 357 | { |