Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
br_sysfs_if.c File Reference
#include <linux/capability.h>
#include <linux/kernel.h>
#include <linux/netdevice.h>
#include <linux/if_bridge.h>
#include <linux/rtnetlink.h>
#include <linux/spinlock.h>
#include "br_private.h"

Go to the source code of this file.

Data Structures

struct  brport_attribute


#define BRPORT_ATTR(_name, _mode, _show, _store)
#define to_brport_attr(_at)   container_of(_at, struct brport_attribute, attr)
#define to_brport(obj)   container_of(obj, struct net_bridge_port, kobj)


int br_sysfs_addif (struct net_bridge_port *p)
int br_sysfs_renameif (struct net_bridge_port *p)


struct sysfs_ops brport_sysfs_ops

Macro Definition Documentation

#define BRPORT_ATTR (   _name,
const struct brport_attribute brport_attr_##_name = { \
.attr = {.name = __stringify(_name), \
.mode = _mode }, \
.show = _show, \
.store = _store, \

Definition at line 29 of file br_sysfs_if.c.

#define to_brport (   obj)    container_of(obj, struct net_bridge_port, kobj)

Definition at line 191 of file br_sysfs_if.c.

#define to_brport_attr (   _at)    container_of(_at, struct brport_attribute, attr)

Definition at line 190 of file br_sysfs_if.c.

Function Documentation

int br_sysfs_addif ( struct net_bridge_port p)

Definition at line 241 of file br_sysfs_if.c.

int br_sysfs_renameif ( struct net_bridge_port p)

Definition at line 263 of file br_sysfs_if.c.

Variable Documentation

struct sysfs_ops brport_sysfs_ops
Initial value:
= {
.show = brport_show,
.store = brport_store,

Definition at line 231 of file br_sysfs_if.c.