This manual page is part of Xcode Tools version 3.2.2

To obtain these tools:

If you are running a version of Xcode Tools other than 3.2.2, view the documentation locally:

  • In Xcode

  • In Terminal, using the man(1) command

Reading manual pages

Manual pages are intended as a quick reference for people who already understand a technology.

  • For more information about the manual page format, see the manual page for manpages(5).

  • For more information about this technology, look for other documentation in the Apple Reference Library.

  • For general information about writing shell scripts, read Shell Scripting Primer.



IOCLASSCOUNT(8)                          BSD System Manager's Manual                         IOCLASSCOUNT(8)

NAME
     ioclasscount

SYNOPSIS
     ioclasscount [classname] [...]

DESCRIPTION
     ioclasscount displays the instance counts of OSObject-based C++ classes in the kernel, incremented by
     the number of direct subclasses that have an instance count of at least 1.  For example, if IONetwork-Controller IONetworkController
     Controller is not directly instantiated, but its direct subclass IOEthernetController has any
     instances, then IONetworkController's instance count will be at least 1; if another direct subclass
     such as IOFWController has any instances, then IONetworkController's instance count will be at least 2;
     and so on.  (This modification of instance counts prevents unloading of kexts defining superclasses
     that have no instances, but whose subclasses in other kexts have instances.)

     If classes are specified, instance counts are printed as a comma-separated list in the order specified.
     If no classes are specified, instance counts for all classes are printed, one per line of output and
     sorted by name.

     This information is useful for tracking leaks.  Instance counts can also found in the root of the
     IORegistry in the ``IOKitDiagnostics'' property.

EXAMPLES
     Display instance counts for IOPCIDevice and AppleTestPCI:

     /usr/sbin/ioclasscount IOPCIDevice AppleTestPCI
            IOPCIDevice = 2, AppleTestPCI = 1

SEE ALSO
     ioalloccount(8), ioreg(8)

Darwin                                        November 06, 2008                                       Darwin

Reporting Problems

The way to report a problem with this manual page depends on the type of problem:

Content errors
Report errors in the content of this documentation with the feedback links below.
Bug reports
Report bugs in the functionality of the described tool or API through Bug Reporter.
Formatting problems
Report formatting mistakes in the online version of these pages with the feedback links below.

Did this document help you? Yes It's good, but... Not helpful...