hello frank !
    the question i asked is met in my job...
    things like this :
        i wrote a charactor device driver , it can do "some" handlings to 
"some" file by   
        "file path".
        we consume dirve named xxx
        problem1: I did this: "ln -s /tmp/xxx  /kernel/drv/sparcv9" then 
"add_drv xxx"
            that's ok.
            But i want the driver to be loaded by itself when computer start.
            So i put xxx into /kernel/drv/sparcv9/ . then i reboot, then i 
check the 
            /var/adm/messages, i found the driver first "attach" then "detach" 
right     
            now. "add_drv xxx"shows the driver has been loaded already.
            "modinfo | grep xxx" shows nothing, "rem_drv xxx" success...........

            So i think i should do this :
           "vi /etc/init.d/xxx.sh" then put "add_drv xxx" into xxx.sh.then 
            "ln -s /etc/init.d/xxx.sh /etc/rc2.d/S99xxx"
            then reboot , but results just like before , it "attach" and" 
detach"..
            why???

        problem2: because my driver act by "file path" , as follows:
             my driver do different handling between dir1 and dir2. consum that 
 it 
             encrypt the file in dir2.
             if we "mv xx/dir1/file1  xx/dir2/file2" we will can not encrypt 
the file2...
             the driver get the file path just by "open” syscall...
             so i want to know the exaclly relationship between vnode and 
pathname.
             because i need a idear to correct the information by myself...
             can i just flush dnlc of dir2? and how??
     so i need help....
 
 
This message posted from opensolaris.org
_______________________________________________
opensolaris-discuss mailing list
[email protected]

Reply via email to