most_nets_dev Struct Reference

Collaboration diagram for most_nets_dev:

Collaboration graph
[legend]

Data Fields

cdev cdev
most_devmost_dev
unsigned char buffer [NETS_BUFSIZ]
atomic_t open_count
task_struct * task
int signo
int signo_async
unsigned int intmask
unsigned char intstatus

Detailed Description

Data structure for each most_netservice device. If the probe function is called, such a device is created and if the remove function is called, the device is destroyed. Because one NetService device could be only opened by one process, an instance of this structure is assigned as private data of the file pointer object.

Definition at line 240 of file most-netservice.h.


Field Documentation

struct cdev most_nets_dev::cdev

the character device of the Linux kernel

Definition at line 241 of file most-netservice.h.

Referenced by most_nets_open(), nets_probe(), and nets_remove().

struct most_dev* most_nets_dev::most_dev

the corresponding most_dev structure

Definition at line 243 of file most-netservice.h.

Referenced by ioctl_irq_reset(), ioctl_irq_set(), ioctl_read_int(), ioctl_read_regblock(), ioctl_read_register(), ioctl_reset(), ioctl_write_regblock(), ioctl_write_register(), most_nets_open(), most_nets_release(), and nets_probe().

unsigned char most_nets_dev::buffer[NETS_BUFSIZ]

buffer for ioctl() calls

Definition at line 245 of file most-netservice.h.

Referenced by ioctl_read_regblock(), ioctl_write_regblock(), and nets_probe().

atomic_t most_nets_dev::open_count

open counter

Definition at line 246 of file most-netservice.h.

Referenced by most_nets_open(), most_nets_release(), and nets_probe().

struct task_struct* most_nets_dev::task

the task struct of the task that gets signalled on interrupts or NULL if there's no registered task

Definition at line 247 of file most-netservice.h.

Referenced by ioctl_irq_set(), and nets_probe().

int most_nets_dev::signo

the signal number (a realtime signal number) which is to be sent if a task has registered on signals (this is for /INT)

Definition at line 251 of file most-netservice.h.

Referenced by ioctl_irq_set().

int most_nets_dev::signo_async

signal number for /AINT

Definition at line 255 of file most-netservice.h.

unsigned int most_nets_dev::intmask

interrupt mask, valid are only IEMAINT_MASK | IEMINT_MASK

Definition at line 256 of file most-netservice.h.

Referenced by ioctl_irq_reset(), and ioctl_irq_set().

unsigned char most_nets_dev::intstatus

current interrupt status. Set by the ISR, cleared by the bottom half. (Must be private to the NetService because it's cleared if the process receives the signal.)

Definition at line 258 of file most-netservice.h.

Referenced by nets_int_handler().


The documentation for this struct was generated from the following file:
Generated on Fri Mar 9 14:48:58 2007 for MOST Linux Drivers (Linux and RTAI) by  doxygen 1.5.0