Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* Loading modules (ldr_xload) in OSF/1
@ 1996-01-29  5:00 Vivek Sadananda Pai
  1996-01-31  5:00 ` Jochen Klein
  0 siblings, 1 reply; 2+ messages in thread
From: Vivek Sadananda Pai @ 1996-01-29  5:00 UTC (permalink / raw)



I am trying to find out information about loading modules, specifically 
about loading and unloading modules into and out of the kernel. I've 
tried man pages, dxbook, and searching the net, but I haven't found 
anything that wasn't in the man pages, which are pretty skimpy on this
topic.

I did a man on ldr_xload, and can see that it allows you to insert an
object file into either a process or the kernel. That makes sense, and
I understand it.  I then did a man on ldr_xentry, and can see that it
gives back an entry point of the form

typedef int             (*ldr_entry_pt_t)(); /* an entry point */

when it gets called.

So, it seems that each module has exactly one entry point, but I
didn't see any way to specify that entry point. Perhaps the entry
point has the same name as the filename, since the filename is one of
the few parameters to ldr_xload.

It's also not clear to me what this entry point is - I assume that if
you've installed something into the kernel, then some form of wrapper
code had to be produced somewhere to do the trap. I guess in this
case, the entry point might be a user-space stub which does this. I'm
also not sure how to pass arguments to the entry point, or what form
the arguments can be.

So, my main questions:

a) what is this entry point?
b) how is the entry point specified?
c) what arguments can the entry point take?
d) if the entry point is into the kernel, does the OS
   write the necessary code in user-space to do the trap?

I am minorly familiar with the modload() function from SunOS and
NetBSD, so even a comparison between the two would be appreciated.

I would appreciate any help that anyone can provide, since I can't
seem to find any other documentation on this topic.

Thanks,
Vivek






^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Loading modules (ldr_xload) in OSF/1
  1996-01-29  5:00 Loading modules (ldr_xload) in OSF/1 Vivek Sadananda Pai
@ 1996-01-31  5:00 ` Jochen Klein
  0 siblings, 0 replies; 2+ messages in thread
From: Jochen Klein @ 1996-01-31  5:00 UTC (permalink / raw)


Hi, 

maybe you should take a look at:

Bookreader
--> Writing Device Drivers Documentation
    --> Writing Device Drivers: Tutorial
        --> Section 3.4: Configure Section
        --> Section 13.1.4.4: Run the sysconfig Utility

(search for sysconfig)
This works also for other moduls, not just device drivers.

Jochen
-- 
                                   '''
                                  (o o)
+-----------------+------------ooO-(_)-Ooo-----------------------------------+
|  Jochen Klein   | Jochen.Klein@informatik.uni-karlsruhe.de                 |
| Striederstr. 11 | s_klein@ira.uka.de                                       |
| 76131 karlsruhe | klein@telematik.informatik.uni-karlsruhe.de              |
| 0721 / 61 31 10 | http://www.telematik.informatik.uni-karlsruhe.de/~klein  |
+-----------------+----------------------------------------------------------+
| char *p="char *p=%c%s%c;%cmain(){printf(p,34,p,34,10,10);}%c";             |
| main(){printf(p,34,p,34,10,10);}                                           |
+----------------------------------------------------------------------------+



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1996-01-31  5:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-01-29  5:00 Loading modules (ldr_xload) in OSF/1 Vivek Sadananda Pai
1996-01-31  5:00 ` Jochen Klein

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox