Go to the source code of this file.
|
#define | BATADV_UEV_TYPE_VAR "BATTYPE=" |
|
#define | BATADV_UEV_ACTION_VAR "BATACTION=" |
|
#define | BATADV_UEV_DATA_VAR "BATDATA=" |
|
#define | BATADV_ATTR(_name, _mode, _show, _store) |
|
#define | BATADV_ATTR_SIF_STORE_BOOL(_name, _post_func) |
|
#define | BATADV_ATTR_SIF_SHOW_BOOL(_name) |
|
#define | BATADV_ATTR_SIF_BOOL(_name, _mode, _post_func) |
|
#define | BATADV_ATTR_SIF_STORE_UINT(_name, _min, _max, _post_func) |
|
#define | BATADV_ATTR_SIF_SHOW_UINT(_name) |
|
#define | BATADV_ATTR_SIF_UINT(_name, _mode, _min, _max, _post_func) |
|
#define | BATADV_ATTR_HIF_STORE_UINT(_name, _min, _max, _post_func) |
|
#define | BATADV_ATTR_HIF_SHOW_UINT(_name) |
|
#define | BATADV_ATTR_HIF_UINT(_name, _mode, _min, _max, _post_func) |
|
|
| BATADV_ATTR_SIF_BOOL (aggregated_ogms, S_IRUGO|S_IWUSR, NULL) |
|
| BATADV_ATTR_SIF_BOOL (bonding, S_IRUGO|S_IWUSR, NULL) |
|
| BATADV_ATTR_SIF_BOOL (fragmentation, S_IRUGO|S_IWUSR, batadv_update_min_mtu) |
|
| BATADV_ATTR_SIF_BOOL (ap_isolation, S_IRUGO|S_IWUSR, NULL) |
|
| BATADV_ATTR_SIF_UINT (orig_interval, S_IRUGO|S_IWUSR, 2 *BATADV_JITTER, INT_MAX, NULL) |
|
| BATADV_ATTR_SIF_UINT (hop_penalty, S_IRUGO|S_IWUSR, 0, BATADV_TQ_MAX_VALUE, NULL) |
|
| BATADV_ATTR_SIF_UINT (gw_sel_class, S_IRUGO|S_IWUSR, 1, BATADV_TQ_MAX_VALUE, batadv_post_gw_deselect) |
|
int | batadv_sysfs_add_meshif (struct net_device *dev) |
|
void | batadv_sysfs_del_meshif (struct net_device *dev) |
|
int | batadv_sysfs_add_hardif (struct kobject **hardif_obj, struct net_device *dev) |
|
void | batadv_sysfs_del_hardif (struct kobject **hardif_obj) |
|
int | batadv_throw_uevent (struct batadv_priv *bat_priv, enum batadv_uev_type type, enum batadv_uev_action action, const char *data) |
|
#define BATADV_ATTR |
( |
|
_name, |
|
|
|
_mode, |
|
|
|
_show, |
|
|
|
_store |
|
) |
| |
Value:
.mode = _mode }, \
.show = _show, \
.store = _store, \
};
Definition at line 56 of file sysfs.c.
#define BATADV_ATTR_HIF_SHOW_UINT |
( |
|
_name | ) |
|
Value:
\
if (!hard_iface) \
return 0; \
\
\
batadv_hardif_free_ref(hard_iface); \
}
Definition at line 146 of file sysfs.c.
#define BATADV_ATTR_HIF_STORE_UINT |
( |
|
_name, |
|
|
|
_min, |
|
|
|
_max, |
|
|
|
_post_func |
|
) |
| |
Value:
\
if (!hard_iface) \
return 0; \
\
length = __batadv_store_uint_attr(buff,
count, _min, _max, \
&hard_iface->_name, net_dev); \
\
batadv_hardif_free_ref(hard_iface); \
}
Definition at line 125 of file sysfs.c.
#define BATADV_ATTR_HIF_UINT |
( |
|
_name, |
|
|
|
_mode, |
|
|
|
_min, |
|
|
|
_max, |
|
|
|
_post_func |
|
) |
| |
Value:
static
BATADV_ATTR(_name, _mode, batadv_show_##_name, \
batadv_store_##_name)
Definition at line 167 of file sysfs.c.
#define BATADV_ATTR_SIF_BOOL |
( |
|
_name, |
|
|
|
_mode, |
|
|
|
_post_func |
|
) |
| |
Value:
static
BATADV_ATTR(_name, _mode, batadv_show_##_name, \
batadv_store_##_name)
Definition at line 88 of file sysfs.c.
#define BATADV_ATTR_SIF_SHOW_BOOL |
( |
|
_name | ) |
|
Value:
"disabled" : "enabled"); \
} \
Definition at line 75 of file sysfs.c.
#define BATADV_ATTR_SIF_SHOW_UINT |
( |
|
_name | ) |
|
#define BATADV_ATTR_SIF_STORE_BOOL |
( |
|
_name, |
|
|
|
_post_func |
|
) |
| |
Value:
return __batadv_store_bool_attr(buff,
count, _post_func,
attr, \
&bat_priv->_name, net_dev); \
}
Definition at line 64 of file sysfs.c.
#define BATADV_ATTR_SIF_STORE_UINT |
( |
|
_name, |
|
|
|
_min, |
|
|
|
_max, |
|
|
|
_post_func |
|
) |
| |
Value:
return __batadv_store_uint_attr(buff,
count, _min, _max, \
&bat_priv->_name, net_dev); \
}
Definition at line 95 of file sysfs.c.
#define BATADV_ATTR_SIF_UINT |
( |
|
_name, |
|
|
|
_mode, |
|
|
|
_min, |
|
|
|
_max, |
|
|
|
_post_func |
|
) |
| |
Value:
static
BATADV_ATTR(_name, _mode, batadv_show_##_name, \
batadv_store_##_name)
Definition at line 118 of file sysfs.c.
#define BATADV_UEV_ACTION_VAR "BATACTION=" |
#define BATADV_UEV_DATA_VAR "BATDATA=" |
#define BATADV_UEV_TYPE_VAR "BATTYPE=" |
BATADV_ATTR_SIF_BOOL |
( |
aggregated_ogms |
, |
|
|
S_IRUGO| |
S_IWUSR, |
|
|
NULL |
|
|
) |
| |
BATADV_ATTR_SIF_BOOL |
( |
ap_isolation |
, |
|
|
S_IRUGO| |
S_IWUSR, |
|
|
NULL |
|
|
) |
| |
BATADV_ATTR_SIF_UINT |
( |
orig_interval |
, |
|
|
S_IRUGO| |
S_IWUSR, |
|
|
2 * |
BATADV_JITTER, |
|
|
INT_MAX |
, |
|
|
NULL |
|
|
) |
| |