Logo Search packages:      
Sourcecode: vaiostat version File versions  Download package

static int __init vaio_init_module ( void   )  [static]

module init function

Returns:
module init return value

Definition at line 279 of file vaiostat.c.

References vaio_lcd_ctrl(), and write_status_info().

{
      struct proc_dir_entry *entry;

      (void)proc_mkdir( "vaio", NULL );

      /* our info status handler */
      entry = create_proc_entry( "vaio/status", 0444 & umask, NULL );
      if( !entry ) printk("vaiostat: could not create vaio/status\n"); else
      entry->read_proc  = write_status_info;
      
      entry = create_proc_entry( "vaio/lcd", 0222 & umask, NULL );
      if( !entry ) printk("vaiostat: could not create vaio/lcd\n"); else
      entry->write_proc = vaio_lcd_ctrl;

/*    if ( verbose ) printk( "vaiostat:init_module\n" );
*/
      return 0;
}


Generated by  Doxygen 1.6.0   Back to index