i have a pre-compiled streams driver (i.e., /lib/modules/2.4.20/misc/streams-spm.o) and when i attempt to load it using the depmod utility i get a bunch of unresolved symbols where each symbol refers to a streams utility function (e.g., getq, putq). this makes me think that dependency on streams.o module may not taken into account properly.
 
i am somewhat confused about the proper steps of introducing a pre-compiled streams driver. LiS documentation makes me think that i should [1] create a /usr/src/LiS/pkg/spm directory;  [2] place an appropriate Config & Makefile in that directory; [3] place streams-spm.o under /lib/modules/2.4.20/misc directory; and [4] run 'make' utility under /usr/src/LiS. 
 
i follow the above steps and create a Config file with the following entries:
 
            driver  spm-mux  spm  *
            node  /dev/spm  c  *  clone-drvr  spm-mux    
 
after running 'make,' the following conf.modules file gets created under /usr/src/LiS:
 
            alias  char-major-240  streams  # driver spm-mux
 
i was expecting this entry to like as follows however:
 
            alias char-major-240  streams-spm  # driver spm-mux
 
since i don't want my driver to be part of streams.o and i would like to be load/unload it independently. what could i be doing wrong? should i avoid putting stuff under /usr/src/LiS/pkg directories? ...
 
also, since i need to code the major device number into my driver's init_module/cleanup_module routines, is it better for me to specify the major number to be assigned to my driver in the Config file as opposed to entering a '*' and leaving the major number assignment to the system?
 
 
 
 

Reply via email to