Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
dgrp_common.c File Reference
#include <linux/errno.h>
#include <linux/tty.h>
#include <linux/sched.h>
#include <linux/cred.h>
#include "dgrp_common.h"

Go to the source code of this file.

Functions

void dgrp_carrier (struct ch_struct *ch)
 
int dgrp_chk_perm (int mode, int op)
 
int dgrp_inode_permission (struct inode *inode, int op)
 

Function Documentation

void dgrp_carrier ( struct ch_struct ch)

dgrp_carrier – check for carrier change state and act : struct ch_struct *

Definition at line 47 of file dgrp_common.c.

int dgrp_chk_perm ( int  mode,
int  op 
)

dgrp_chk_perm() – check permissions for net device : pointer to inode structure for the net communication device : operation to be tested

The file permissions and ownerships are tested to determine whether the operation "op" is permitted on the file pointed to by the inode. Returns 0 if the operation is permitted, -EACCESS otherwise

Definition at line 180 of file dgrp_common.c.

int dgrp_inode_permission ( struct inode inode,
int  op 
)

Definition at line 197 of file dgrp_common.c.