Discussion:
Some startup issues.....
b***@touchstone-imagery.com
2005-11-28 19:31:46 UTC
Permalink
I have coded a driver and two modules . I built the Config and have
loaded (insmod) streams.o and ptp.o (which contains ptp0.o, ptpa.o and
ptpb.o). I have set my Config up as follows:

driver ptp ptp_ * 2 1
module ptpa ptpa_
module ptpb ptpb_
loadable ptp0.o
loadable ptpa
loadable ptpb
node /dev/ptp0 c * ptp 0 ptp
node /dev/ptp1 c * ptp 1 ptp
objname driver ptp ptp0.o
objname module ptpa ptpa
objname module ptpb ptpb
qlock driver ptp 1
qlock module ptpa 1
qlock module ptpb 1
autopush ptp 0 1 ptpa ptpb
device ptp -1 0 0 n 15 -1 -1 -1
-1

This is intended to load as:
streamhead
ptpb
ptpa
ptp0 (driver)

I link my three objects into the same file ptp.o
I insmod streams.o then ptp.o

The output of streams includes:
STREAMS module "ptpa" registered (loadable), id 4
STREAMS module "ptpb" registered (loadable), id 5

No devices are created. I am expecting ptp0 and ptp1 with the respective
minor numbers 0, 1.

lsmod shows:
ptp 9794 0 (unused)
streams 667013 0 [ptp]

I have a trace at each entry point in the driver and I never get
control.

The Big question is: What am I doing wrong? Am I missing code in one of
the modules? What else to I need to do - or correct.

Thanks!
Bill

Loading...