mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 09:19:51 +00:00
![sjur.brandeland@stericsson.com](/assets/img/avatar_default.png)
Introduce Per-cpu reference for lower part of CAIF Stack. Before freeing payload is disabled, synchronize_rcu() is called, and then ref-count verified to be zero. Signed-off-by: Sjur Brændeland <sjur.brandeland@stericsson.com> Signed-off-by: David S. Miller <davem@davemloft.net>
21 lines
657 B
C
21 lines
657 B
C
/*
|
|
* Copyright (C) ST-Ericsson AB 2010
|
|
* Author: Sjur Brendeland/sjur.brandeland@stericsson.com
|
|
* License terms: GNU General Public License (GPL) version 2
|
|
*/
|
|
|
|
#ifndef CFFRML_H_
|
|
#define CFFRML_H_
|
|
#include <net/caif/caif_layer.h>
|
|
#include <linux/netdevice.h>
|
|
|
|
struct cffrml;
|
|
struct cflayer *cffrml_create(u16 phyid, bool use_fcs);
|
|
void cffrml_free(struct cflayer *layr);
|
|
void cffrml_set_uplayer(struct cflayer *this, struct cflayer *up);
|
|
void cffrml_set_dnlayer(struct cflayer *this, struct cflayer *dn);
|
|
void cffrml_put(struct cflayer *layr);
|
|
void cffrml_hold(struct cflayer *layr);
|
|
int cffrml_refcnt_read(struct cflayer *layr);
|
|
|
|
#endif /* CFFRML_H_ */
|