Greetings,

I have two kernel modules (brought over from Linux), one being a 
hardware driver ("D") and another a plain module "S" (actually, a socket 
module, see project volo-gate).

S depends on D as it calls its functions. This is expressed in the link 
step via "-dy -ND". Things load fine, but problems are with D 
attaching/detaching:
- D does not load or even attach when S is loaded, but only when I i.e. 
read from its /dev entry.
- as soon as D attaches, things work well (S calling D's funcions get 
the expected result)
- however, D detaches after some time (the kernel seems to trigger this, 
not D itself!), and if S calls D's functions now, it gets results 
indicating "now hardware found" (internal state of D when not being 
attached).
- once I manually make D attach again, thinks work well. Both D and S 
remain loaded all the time.

This should be a pretty common problem - how is this handled properly?

  Joachim

-- 
Joachim Worringen, Software Architect, Dolphin Interconnect Solutions
phone ++49/(0)228/324 08 17 - http://www.dolphinics.com
_______________________________________________
opensolaris-code mailing list
opensolaris-code@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to