Watching kernel modules load

I'm taking a course in Solaris Internals. This bit of information our instructor mentioned isn't in the textbook and might be useful to others. How to watch kernel modules load:


/usr/openwin/bin/xterm -C
In resulting terminal do this:
mdb -kw
Loading modules: [ unix krtld genunix specfs dtrace uppc ufs ip sctp usba uhci fctl nca s1394 lofs random nfs audiosup sppp crypto ptm ipc ]
> moddebug/W 0,8000000
moddebug:       0               =       0xfec4cd3c
> $q

Now load a module.

modload /kernel/drv/lofi
# modload /kernel/drv/lofi  
Apr 20 12:15:08 solarisvaio genunix: kobj_open: '/kernel/drv/lofi'
Apr 20 12:15:08 solarisvaio genunix:  vp = d65b7f00
Apr 20 12:15:08 solarisvaio genunix: kobj_close: 0xd65b7f00
Apr 20 12:15:08 solarisvaio genunix: Holding /kernel/drv/lofi
Apr 20 12:15:08 solarisvaio genunix: Releasing /kernel/drv/lofi
...
Comments:

Post a Comment:
Comments are closed for this entry.
About

bnitz

Search

Archives
« April 2014
MonTueWedThuFriSatSun
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
    
       
Today