solaris 2.3 kernel thrashed

solaris 2.3 kernel thrashed

Post by vitta » Fri, 09 Aug 1996 04:00:00



I did a add_drv  to add a new charecter driver and oops the system
crashes and when it tries to reboot ofter that it crashes again! I think
its a bug with solaris 2.3 ??? any help is thanked apriori -:)

The following driver program crashed the system and what more whenever
it tries to sync and reboot it crashes again. So effectively the
system is not able to come up at all. Is it a bug in solaris 2.3 ?
This panic and sink happens when it tries to configure /devices
directory.

#include <limits.h>
#include <sys/types.h>
#include <sys/param.h>
#include <sys/signal.h>
#include <sys/user.h>
#include <sys/errno.h>
#include <sys/uio.h>
#include <sys/modctl.h>
#include <sys/devops.h>

static char foxmessage[] =
        "The quick brown fox jumps over lazy dog ";

struct mod_ops  mod_driverops;

static struct modldrv modldrv_= {
               &mod_driverops,
               "Sample Driver",
                NULL

Quote:};

static struct modlinkage modlinkage_ = {
               MODREV_1,
               &modldrv_,
               NULLint
_init(void)
{
               return (mod_install(&modlinkage_));

Quote:}

int chdinit()
{
   return 0;

Quote:}

int chdwrite(dev,uio)
dev_t   dev;
struct uio *uio;
{
  printf("Write calls ignored\n");
  return 0;
Quote:}

int chdread(dev,uio)
dev_t   dev;
struct uio *uio;
{
char c;

   while ( (uio->uio_iovcnt>0) && (uio->uio_iov->iov_len>0) ) {

        c=foxmessage[uio->uio_offset % (sizeof(foxmessage) -1)];
        if (ureadc(c,uio))
                return EFAULT;
   }
   return 0;

Quote:}

int chdopen( dev, flags )
dev_t  dev;
int flags;
{
  return 0;

Quote:}

int chdclose( dev )
dev_t  dev;
{
  return 0;

Quote:}
};

thanx

Vittal


--
  ___________________________________________________________________________
                Beauty lies in the eyes of the beholder !
 /________________________________________________________________________
|
|   ___________________________________________________________________
/|
|
|  | |                                       Vittal Sathyanatayanan    |
|
|
|  | |                                       ,,,                       |
|
|
|  | |                                                      (o o)      | |
|     Email Address:
|  |

|
|  |/________________________________________________________________________
|
|___________________________________________________________________________/

 
 
 

1. HELP: Solaris 2.3 <---> Solaris 2.3 PPP link problems

Hi all,

We are attempting to link up two Solaris 2.3 networks via PPP and we are
running into some problems.  The link initialy comes up and we are able to ping
both sides for about 30 seconds or so and then nothing.  Does anyone have a
clue what could be hapening? We are stumped here.

Thanx,

- Steve
--
=============================================================================
 Always going where no one has gone before...

=============================================================================

2. uninstalling Apache 1.3.0

3. HELP: Solaris 2.3 <---> Solaris 2.3 PPP link Problems

4. Backing up from Solaris 2.5

5. Help with Pageview under 2.3 (Re: Display Postscript X Solaris 2.3)

6. KDE and Kernel errors

7. Q. Solaris 2.3 and /kernel/drv/st.conf

8. Linux DOOM

9. need input on kernel jumbo patch for Solaris 2.3 (101318-70)

10. Solaris 2.3 kernel memory limitations.

11. Solaris 2.3 kernel variables

12. Solaris 2.3 tunable kernel parameters

13. Setting up Solaris 2.3 Kernel parameters