modinfo(8) 맨 페이지 - 윈디하나의 솔라나라

개요

섹션
맨 페이지 이름
검색(S)

modinfo(8)

modinfo(8)              System Administration Commands              modinfo(8)

NAME
       modinfo - display information about loaded kernel modules

SYNOPSIS
       /usr/sbin/modinfo [-ahwx] [--scale[=item1,item2,...]]
           [-c | [-i module] [-pP] [-o field[,...]]]

DESCRIPTION
       The  modinfo utility displays information about the kernel modules cur‐
       rently known to the running system. The following information is avail‐
       able.

       id          Module identifier.


       loadaddr    When run by a privileged user, the starting text address of
                   the module in hexadecimal format. The string '--'  is  dis‐
                   played for unprivileged users.


       size        The  size  in  bytes, of the module text, data, and bss, in
                   hexadecimal format.


       info        Module specific information. The block and character  major
                   numbers  are  shown  for drivers. The system call number is
                   provided for for system calls. Other module  types  do  not
                   specify  a  meaning  for this field, and the string '--' is
                   displayed.


       rev         The revision of the loadable modules system for  which  the
                   module was built. A small number of primary system modules,
                   including  the  unix kernel, do not specify a revision, and
                   the string '--' is displayed.


       sys         Identifies system modules built and delivered with the core
                   Oracle Solaris system. A value of 1  is  shown  for  system
                   modules, 0 for others.


       path        Path at which the module file resides. For a loaded module,
                   the  actual path that the kernel used when loading the mod‐
                   ule is shown. For a module that is not loaded, the path  at
                   which  the  kernel  would be expected to load the module is
                   shown. If modinfo is unable to determine where  the  module
                   would  be  loaded  from, a path based on the module name is
                   constructed, with a question mark ('?') at the beginning to
                   indicate its placeholder status.


       name        Module name.


       desc        A brief description of the module's purpose.


       namedesc    The module name, followed in parenthesis  by  a  brief  de‐
                   scription of the module's purpose.


       loadcnt     The number of times the module has been loaded since system
                   boot.


       state       The  module  state,  indicating  whether the module is cur‐
                   rently loaded, as well as whether it is  installed  and  is
                   available for use.



       By  default,  id, loadaddr, size, info, sys, and namedesc are shown. If
       the -c option is specified, id, loadcnt, name, and state are shown. The
       -o option can be used to specify an arbitrary subset of  this  informa‐
       tion, and to control the order in which it is displayed.


       For  modules  that  are  not currently loaded, output may not match the
       binding which occurs if software is added or removed from  the  system.
       Such  changes  may cause a different path to be used when the module is
       next loaded.

OPTIONS
       The following options are supported:

       -a

           Display information for all modules known to the system,  including
           those not currently loaded.


       -c

           Display the number of times the module has been loaded and the cur‐
           rent  module  state. This option implicitly sets the -a option, and
           cannot be used with the -i, -o, -p, or -P options.


       -h

           Prints the size field in decimal, scaled to a human  readable  for‐
           mat.  The -h option is equivalent to using the --scale=max,1024 op‐
           tion.


       -i module

           Displays information about the specified module only.  If  'module'
           starts  with a digit then it is interpreted as a decimal module Id,
           otherwise it is interpreted as a module name. The module id  for  a
           given  module is assigned dynamically by the system, and can change
           across a reboot.


       -o field[,...]

           A case-insensitive, comma-separated list of output fields  to  dis‐
           play.  The available field names are listed above. See DESCRIPTION.
           Alternatively, the special value all can be  specified  to  display
           all  the  fields  in the order listed above. This option implicitly
           enables the -w option.


       -p

           Display information in a stable machine-parsable format. The -o op‐
           tion must be used in conjunction with this option. The  output  in‐
           cludes  only  those  fields requested by means of the -o option, in
           the order requested.

           When more than one field of information is requested, the lines  of
           output consist of colon (:) delimited fields, and any literal colon
           characters  are  escaped  by a backslash character (\) before being
           output. Similarly, literal backslash characters  are  also  escaped
           (\\).  This  escape format is parsable by using shell read(1) func‐
           tions with the IFS environment variable set as IFS=:.

           When a single field of output is requested,  each  line  of  output
           provides of the requested information directly, with no escaping of
           colon or or backslash characters.


       -P

           Only  displays  the  path  and header information. The -P option is
           equivalent to '-p -o path'.


       --scale[=item1,item2,...]

           Prints the size field in decimal, scaled to a human  readable  for‐
           mat.  Scaling is done by repetitively dividing by 1024, unless oth‐
           erwise specified. --scale specified without arguments  enables  de‐
           fault  scaled  output,  and  is equivalent to --scale=max,1024. See
           scale(7) for a complete description of --scale features.


       -w

           Do not truncate module information at 80 characters.


       -x

           Only display modules not built and delivered with the  core  Oracle
           Solaris  system.  These modules correspond to the modules for which
           the sys output field has the value 0. See DESCRIPTION.


       -?
       --help

           Print usage message and immediately exit.



EXAMPLES
       Example 1 Displaying the Status of a Module



       The following example displays the status of module 3:



         example% modinfo -i 3

         ID  LOADADDR         SIZE   INFO SYS NAMEDESC
         3   fffffffffbdcf000 7410   1    1   specfs (filesystem for specfs)




         example% modinfo -i specfs

         ID  LOADADDR         SIZE   INFO SYS NAMEDESC
         3   fffffffffbdcf000 7410   1    1   specfs (filesystem for specfs)


       Example 2 Displaying the Status of Kernel Modules



       The following example displays the status of some kernel modules:



         example% modinfo

         ID  LOADADDR         SIZE   INFO SYS NAMEDESC
         0   fffffffffb800000 3b3cb4 --   --  unix ()
         1   fffffffffb9f8208 43e068 --   --  genunix ()
         3   fffffffffbdcf000 7410   1    1   specfs (filesystem for specfs)
         4   fffffffffbdd6370 5d80   3    1   fifofs (filesystem for fifo)
         5   fffffffff80b4000 267c8  53   1   dtrace (Dynamic Tracing)
         6   fffffffffbddc038 9608   16   1   devfs (devices filesystem)
         7   fffffffffbde53f0 21830  17   1   dev (/dev filesystem)
         8   fffffffffbe064e8 8078   --   1   dls (Data-Link Services)
         9   fffffffffbe0e248 4c908  --   1   mac (MAC Services)
         10  fffffffffbe59968 25c20  5    1   procfs (filesystem for proc)


       Example 3 Using the -c Option



       Using the modinfo command with the -c option displays the number of in‐
       stances of the module loaded and the module's current state.



         example% modinfo -c

         ID  LOADCNT NAME                    STATE
         0   1       unix                    LOADED/INSTALLED
         1   1       genunix                 LOADED/INSTALLED
         2   0       cl_bootstrap            UNLOADED/UNINSTALLED
         3   1       specfs                  LOADED/INSTALLED
         4   1       fifofs                  LOADED/INSTALLED
         5   1       dtrace                  LOADED/INSTALLED
         6   1       devfs                   LOADED/INSTALLED
         7   1       dev                     LOADED/INSTALLED
         8   1       dls                     LOADED/INSTALLED
         9   1       mac                     LOADED/INSTALLED
         10  1       procfs                  LOADED/INSTALLED


       Example 4 Using the -o and -p Options



       Using the modinfo command with the -o and -p option displays user-spec‐
       ified fields and in machine-parsable format.



         example% modinfo -o id,desc,path -i specfs
         ID  DESC                            PATH
         3   filesystem for specfs           /kernel/fs/amd64/specfs




         example% modinfo -o id,desc,path -i specfs -p
         3:filesystem for specfs:/kernel/fs/amd64/specfs


ATTRIBUTES
       See attributes(7) for descriptions of the following attributes:

       tab() box; cw(2.75i) |cw(2.75i) lw(2.75i) |lw(2.75i) ATTRIBUTE  TYPEAT‐
       TRIBUTE VALUE _ Availabilitysystem/core-os _ Interface StabilityCommit‐
       ted


SEE ALSO
       attributes(7), scale(7), modload(8), modunload(8)

HISTORY
       The  -h,  -x,  -?, --scale, and --help options, and the sys field, were
       added in Oracle Solaris 11.4.69.


       The -a, -o, -p, and -P options, and the ability to pass module names to
       the -i option, were added in Oracle Solaris 11.4.0.


       The modinfo command, with the -c, -i, and -w options, was introduced in
       Solaris 2.0.

Oracle Solaris 11.4               13 Sep 2024                       modinfo(8)
맨 페이지 내용의 저작권은 맨 페이지 작성자에게 있습니다.
RSS ATOM XHTML 5 CSS3