1. HELP: Writing a module/driver in Solaris 2.6
Hi, please help me with this problem. I'm writing a module/driver in
Solaris 2.6 environment.
I'm using "modload" command to load my module. But its showing "module
can not be loaded: Bad address". And in the console its giving me
_info() not defined properly
_init() not defined properly
My module name is "loop" and my loop.c file has the following
definitions
struct module_info info = {
0, "loop",1, 512, 65536, 1024
struct qinit rinit = { /* Read side init structure */
nil(pfi_t),
nil(pfi_t),
loopopen,
loopclose,
nil(pfi_t),
&info
struct qinit winit = { /* Write side init structure */
(pfi_t)loopwput,
(pfi_t)loopwsrv,
loopopen,
loopclose,
NULL,
&info
struct streamtab loopinfo = { /* Table of loop stream */
&rinit,
&winit,
NULL, /* Lower side init structures, not available in this driver */
NULL
I have used the following commands to create the compile and link the module
gcc -O -D_KERNEL -DDEBUG -I/usr/include -c loop.c
ld -r loop.o
**** modload suggested me to used "ld -r", but its creating a non-executable file.
Please someone help me. What did I do wrong?
Thanks for reading my note.
Hadee
2. How to use ip aliasing
3. Q : CD-ROM Mounting and X Graphics
4. Having problem writing a PCI device driver
5. Need a simple util. that will monitor CPU/DISK and email stats
6. how to write and install a VME driver on a Solaris 2.6 station
7. Dell P90: help linux install on 540 Meg Drive
8. Bug in ttymon or serial device driver with Solaris 2.6
9. Solaris 2.6 device driver problem
10. x86 SOLARIS 2.6 device driver.
11. Solaris 2.6 device driver problem
12. Pseudo Device Driver for Solaris 2.6