Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
sysfs.c File Reference
#include "mlx4_ib.h"
#include <linux/slab.h>
#include <linux/string.h>
#include <linux/stat.h>
#include <rdma/ib_mad.h>

Go to the source code of this file.

Data Structures

struct  mlx4_port
 
struct  port_attribute
 
struct  port_table_attribute
 

Macros

#define DENTRY_REMOVE(_dentry)
 

Functions

int add_sysfs_port_mcg_attr (struct mlx4_ib_dev *device, int port_num, struct attribute *attr)
 
void del_sysfs_port_mcg_attr (struct mlx4_ib_dev *device, int port_num, struct attribute *attr)
 
int mlx4_ib_device_register_sysfs (struct mlx4_ib_dev *dev)
 
void mlx4_ib_device_unregister_sysfs (struct mlx4_ib_dev *device)
 

Macro Definition Documentation

#define DENTRY_REMOVE (   _dentry)
Value:
do { \
sysfs_remove_file((_dentry)->kobj, &(_dentry)->dentry.attr); \
} while (0);

Definition at line 177 of file sysfs.c.

Function Documentation

int add_sysfs_port_mcg_attr ( struct mlx4_ib_dev device,
int  port_num,
struct attribute attr 
)

Definition at line 220 of file sysfs.c.

void del_sysfs_port_mcg_attr ( struct mlx4_ib_dev device,
int  port_num,
struct attribute attr 
)

Definition at line 233 of file sysfs.c.

int mlx4_ib_device_register_sysfs ( struct mlx4_ib_dev dev)

Definition at line 717 of file sysfs.c.

void mlx4_ib_device_unregister_sysfs ( struct mlx4_ib_dev device)

Definition at line 786 of file sysfs.c.