mbuf subcommand

The mbuf subcommand displays data structure (mbuf) information. Mbufs are used to store data in the kernel for incoming and outbound network traffic.

Format

mbuf [-p | [-a effectiveaddress] [-n effectiveaddress] [-d effectiveaddress]]

Parameters

Item Description
-p Displays the private mbuf structure pool information.
-a Follows the packet chain. The effectiveaddress parameter is required for this flag.
-n Follows the mbuf structure chain within a packet. The effectiveaddress parameter is required for this flag.
-d Prints the mbuf structure data along with the mbuf header. This is helpful when you need mbuf data information. You must use the effectiveaddress parameter with this flag.
effectiveaddress Specifies the effective address of an mbuf structure to be displayed. Use symbols, hexadecimal values, or hexadecimal expressions to specify the address.

Display the packet chain and mbuf structure chains within packets by using the -a parameter and the -n parameter.

Other

No aliases.

Examples

The following is an example of how to use the mbuf subcommand:

KDB(1)> mbuf -p  total cluster pools............00000001  cluster pool @..........700F8D40
 p_next..................00000000 p_size..................0000000A  p_inuse.................00000001
m_outcnt................00000001  m_maxoutcnt.............00000002 next....................70168F00
 tail....................70110F00 p_lock..................004A7EE4  p_debug
@...............70EF6600 failed..................00000000  KDB(1)> mbuf 70168F00
 m.......................70168F00  m_next..................00000000 m_nextpkt...............71210F00
 m_data..................71164800 m_len...................00000010 m_type..........
0001 DATA  m_flags......... 0041 (M_EXT|M_EXT2) ext_buf.................71164800
 ext_free................0026C058 ext_size................00000400  ext_arg.................700F8D40
ext_forw................70168F2C  ext_back................70168F2C ext_hasxm...............00000000
 ext_xmemd.....@.........70168F38 ext_debug.....@.........70EF6750 
------------------------------------------------------------------
71164800: 7116 4400  3172 D58C  0000 0000  0000 0000   q.D.1r..........