kernels/linux-2.4.0/drivers/scsi/ips.c
/****************************************************************************/
/*                                                                          */
/* Routine Name: ips_proc_info                                              */
/*                                                                          */
/* Routine Description:                                                     */
/*                                                                          */
/*   The passthru interface for the driver                                  */
/*                                                                          */
/****************************************************************************/


Routine Description.

The passthru interface for the driver
Routine Description . The passthru interface for the driver
int
ips_proc_info(char *buffer, char **start, off_t offset,
              int length, int hostno, int func) {
   int           i;
   int           ret;
   ips_ha_t     *ha = NULL;
   METHOD_TRACE("ips_proc_info", 1);
   for (i = 0; i < ips_next_controller; i++) {
      if (ips_sh[i] && ips_sh[i]->host_no == hostno) {
         ha = (ips_ha_t *) ips_sh[i]->hostdata;
         break;
      }
   }
   if (!ha)
      return (-EINVAL);
   if (func) {
      return (0);
   } else {
      if (start)
         *start = buffer;
      ret = ips_host_info(ha, buffer, offset, length);
      return (ret);
   }
}
int ips_proc_info ( char * buffer , char * * start , off_t offset , int length , int hostno , int func ) { int i ; int ret ; ips_ha_t * ha = NULL ; METHOD_TRACE ( " " , 1 ) ; for ( i = 0 ; i < ips_next_controller ; i ++ ) { if ( ips_sh [ i ] && ips_sh [ i ] -> host_no == hostno ) { ha = ( ips_ha_t * ) ips_sh [ i ] -> hostdata ; break ; } } if ( ! ha ) return ( - EINVAL ) ; if ( func ) { return ( 0 ) ; } else { if ( start ) * start = buffer ; ret = ips_host_info ( ha , buffer , offset , length ) ; return ( ret ) ; } }
Routine Name: ips_proc_info
Routine Name : ips_proc_info
/* Find our host structure */ /* write */ /* read */