Main Page | Modules | Data Structures | File List | Data Fields | Related Pages

Network class
[Linux 2.6 support]

Network class. More...

Defines

#define VALID_NLMSG(h, s)

Functions

const char * media_type_to_string (int media_type)
guint16 mdio_read (int sockfd, struct ifreq *ifr, int location, gboolean new_ioctl_nums)
 Read a word from the MII transceiver management registers.

void mii_get_rate (HalDevice *d)
void mii_get_link (HalDevice *d)
void link_detection_handle_message (struct nlmsghdr *hdr, HalDevice *d)
gboolean link_detection_data_ready (GIOChannel *channel, GIOCondition cond, gpointer user_data)
void link_detection_init (HalDevice *d)
void net_class_pre_process (ClassDeviceHandler *self, HalDevice *d, const char *sysfs_path, struct sysfs_class_device *class_device)
 This method is called just before the device is either merged onto the sysdevice or added to the GDL (cf.

void net_class_post_merge (ClassDeviceHandler *self, HalDevice *d)

Variables

ClassDeviceHandler net_class_handler
 Method specialisations for input device class.

ClassDeviceHandler net_class_handler
 Method specialisations for input device class.


Detailed Description

Network class.


Define Documentation

#define VALID_NLMSG h,
 ) 
 

Value:

((NLMSG_OK (h, s) && \
                           s >= sizeof (struct nlmsghdr) && \
                           s >= h->nlmsg_len))

Definition at line 303 of file net_class_device.c.


Function Documentation

guint16 mdio_read int  sockfd,
struct ifreq *  ifr,
int  location,
gboolean  new_ioctl_nums
[static]
 

Read a word from the MII transceiver management registers.

Parameters:
iface Which interface
location Which register
Returns:
Word that is read

Definition at line 121 of file net_class_device.c.

void net_class_pre_process ClassDeviceHandler self,
HalDevice *  d,
const char *  sysfs_path,
struct sysfs_class_device *  class_device
[static]
 

This method is called just before the device is either merged onto the sysdevice or added to the GDL (cf.

merge_or_add). This is useful for extracting more information about the device through e.g. ioctl's using the device file property and also for setting info.category|capability.

Parameters:
self Pointer to class members
d The HalDevice object of the instance of this device class
sysfs_path The path in sysfs (including mount point) of the class device in sysfs
class_device Libsysfs object representing class device instance

Definition at line 412 of file net_class_device.c.

References parse_dec().


Variable Documentation

ClassDeviceHandler net_class_handler
 

Initial value:

Method specialisations for input device class.

Definition at line 478 of file net_class_device.c.


Generated on Sat Apr 24 19:57:50 2004 for HAL by doxygen 1.3.6-20040222