solaris - OracleSolaris 11.2 -- adding driver to system, attach fails -


i'm learning solaris , writing simple driver; implemented basic entry points, i.e. _init, _info, _finit, *attach, *detach. compiles , links no issues, copy /usr/kernel/drv/amd64/ , call:

% add_drv mydrv jul   7 22:54:16 ezhost mydrv: notice: mydrv: _info called devfsadm: driver failed attach: mydrv warning: driver (mydrv) added system failed attach jul   7 22:54:16 ezhost mydrv: notice: mydrv: _init called 

currently in _attach routine is:

ddi_get_instance ddi_soft_state_zalloc ddi_get_soft_state

and return ddi_success

not much, when drivers gets loaded in memory, system (devfsadm) expects creates entries in devfs, driver doesn't register character device nodes, , result fails?


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

How to provide Authorization & Authentication using Asp.net, C#? -