Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions | Variables
dgrp_common.h File Reference
#include <linux/fs.h>
#include <linux/timer.h>
#include "drp.h"

Go to the source code of this file.

Data Structures

struct  dgrp_poll_data
 
struct  dgrp_proc_entry
 

Macros

#define DIGI_VERSION   "1.9-29"
 
#define DGRP_TTIME   100
 
#define DGRP_RTIME   100
 

Enumerations

enum  {
  DGRP_CONFIG = 1, DGRP_NETDIR = 2, DGRP_MONDIR = 3, DGRP_PORTSDIR = 4,
  DGRP_INFO = 5, DGRP_NODEINFO = 6, DGRP_DPADIR = 7
}
 
enum  { INBOUND = 1, OUTBOUND = 2 }
 

Functions

void dgrp_poll_handler (unsigned long arg)
 
void dgrp_register_mon_hook (struct proc_dir_entry *de)
 
int dgrp_tty_init (struct nd_struct *nd)
 
void dgrp_tty_uninit (struct nd_struct *nd)
 
void dgrp_register_ports_hook (struct proc_dir_entry *de)
 
void dgrp_register_net_hook (struct proc_dir_entry *de)
 
void dgrp_register_dpa_hook (struct proc_dir_entry *de)
 
void dgrp_dpa_data (struct nd_struct *, int, u8 *, int)
 
void dgrp_create_class_sysfs_files (void)
 
void dgrp_remove_class_sysfs_files (void)
 
void dgrp_create_node_class_sysfs_files (struct nd_struct *nd)
 
void dgrp_remove_node_class_sysfs_files (struct nd_struct *nd)
 
void dgrp_create_tty_sysfs (struct un_struct *un, struct device *c)
 
void dgrp_remove_tty_sysfs (struct device *c)
 
: text name associated with the /proc entry

dgrp_proc_entry: structure for dgrp proc dirs : ID number associated with this particular entry. Should be unique across all of DGRP.

: file access permisssions for the /proc entry : pointer to table describing a subdirectory for this entry : pointer to directory entry for this object once registered. Used to grab the handle of the object for unregistration : semaphore to provide exclusive to struct : counter of current accesses

Each entry in a DGRP proc directory is described with a dgrp_proc_entry structure. A collection of these entries (in an array) represents the members associated with a particular /proc directory, and is referred to as a table. All tables are terminated by an entry with zeros for every member.

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

Variables

int dgrp_rawreadok
 
int dgrp_register_cudevices
 
int dgrp_register_prdevices
 
int dgrp_poll_tick
 
struct list_head nd_struct_list
 
struct dgrp_poll_data dgrp_poll_data
 

Macro Definition Documentation

#define DGRP_RTIME   100

Definition at line 28 of file dgrp_common.h.

#define DGRP_TTIME   100

Definition at line 27 of file dgrp_common.h.

#define DIGI_VERSION   "1.9-29"

Definition at line 21 of file dgrp_common.h.

Enumeration Type Documentation

anonymous enum
Enumerator:
DGRP_CONFIG 
DGRP_NETDIR 
DGRP_MONDIR 
DGRP_PORTSDIR 
DGRP_INFO 
DGRP_NODEINFO 
DGRP_DPADIR 

Definition at line 84 of file dgrp_common.h.

anonymous enum
Enumerator:
INBOUND 
OUTBOUND 

Definition at line 97 of file dgrp_common.h.

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.

void dgrp_create_class_sysfs_files ( void  )

Definition at line 107 of file dgrp_sysfs.c.

void dgrp_create_node_class_sysfs_files ( struct nd_struct nd)

Definition at line 264 of file dgrp_sysfs.c.

void dgrp_create_tty_sysfs ( struct un_struct un,
struct device c 
)

Definition at line 535 of file dgrp_sysfs.c.

void dgrp_dpa_data ( struct nd_struct nd,
int  type,
u8 buf,
int  size 
)

dgrp_monitor_data() – builds a DPA data packet : pointer to a node structure : type of message to be logged in the DPA buffer : buffer of data to be logged in the DPA buffer – number of bytes in the "buf" buffer

Definition at line 546 of file dgrp_dpa_ops.c.

int dgrp_inode_permission ( struct inode inode,
int  op 
)

Definition at line 197 of file dgrp_common.c.

void dgrp_poll_handler ( unsigned long  arg)

dgrp_poll_handler() – handler for poll timer

As each timer expires, it determines (a) whether the "transmit" waiter needs to be woken up, and (b) whether the poller needs to be rescheduled.

Definition at line 3523 of file dgrp_net_ops.c.

void dgrp_register_dpa_hook ( struct proc_dir_entry de)

Definition at line 114 of file dgrp_dpa_ops.c.

void dgrp_register_mon_hook ( struct proc_dir_entry de)

Definition at line 64 of file dgrp_mon_ops.c.

void dgrp_register_net_hook ( struct proc_dir_entry de)

Definition at line 88 of file dgrp_net_ops.c.

void dgrp_register_ports_hook ( struct proc_dir_entry de)

Definition at line 63 of file dgrp_ports_ops.c.

void dgrp_register_proc ( void  )

Definition at line 198 of file dgrp_specproc.c.

void dgrp_remove_class_sysfs_files ( void  )

Definition at line 134 of file dgrp_sysfs.c.

void dgrp_remove_node_class_sysfs_files ( struct nd_struct nd)

Definition at line 293 of file dgrp_sysfs.c.

void dgrp_remove_tty_sysfs ( struct device c)

Definition at line 552 of file dgrp_sysfs.c.

int dgrp_tty_init ( struct nd_struct nd)

Definition at line 3163 of file dgrp_tty.c.

void dgrp_tty_uninit ( struct nd_struct nd)

Definition at line 3120 of file dgrp_tty.c.

void dgrp_unregister_proc ( void  )

Definition at line 182 of file dgrp_specproc.c.

Variable Documentation

Definition at line 40 of file dgrp_driver.c.

int dgrp_poll_tick

Definition at line 45 of file dgrp_driver.c.

int dgrp_rawreadok

Definition at line 42 of file dgrp_driver.c.

int dgrp_register_cudevices

Definition at line 43 of file dgrp_driver.c.

int dgrp_register_prdevices

Definition at line 44 of file dgrp_driver.c.

struct list_head nd_struct_list

Definition at line 39 of file dgrp_driver.c.