JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
Oracle Solaris Modular Debugger Guide     Oracle Solaris 11.1 Information Library
search filter icon
search icon

Document Information

Preface

1.  Modular Debugger Overview

2.  Debugger Concepts

3.  MDB Language Syntax

4.  Using MDB Commands Interactively

5.  Built-In Commands

6.  Execution Control

7.  Kernel Execution Control

8.  Kernel Debugging Modules

Generic Kernel Debugging Support (genunix)

Kernel Memory Allocator

Kernel Memory Allocator Dcmds

Kernel Memory Allocator Walkers

File Systems

File Systems Dcmds

File Systems Walkers

Virtual Memory

Virtual Memory Dcmds

Virtual Memory Walkers

CPU Structures and the Kernel Dispatcher

CPU and Dispatcher Dcmds

CPU and Dispatcher Walkers

Device Drivers and DDI Framework

Device Driver Dcmds

Device Driver Walkers

STREAMS

STREAMS Dcmds

STREAMS Walkers

Networking

Networking Dcmds

Networking Walkers

Files, Processes, and Threads

Files, Processes, and Threads Dcmds

Files, Processes, and Threads Walkers

Synchronization Primitives

Synchronization Primitives Dcmds

Synchronization Primitives Walkers

Cyclics

Cyclics Dcmds

Cyclics Walkers

Task Queues

Task Queues Dcmds

Task Queues Walkers

Error Queues

Error Queues Dcmds

Error Queues Walkers

System Configuration

System Configuration Dcmds

Interprocess Communication Debugging Support (ipc)

Interprocess Communication Dcmds

Interprocess Communication Walkers

Loopback File System Debugging Support (lofs)

Loopback File System Dcmds

Loopback File System Walkers

Internet Protocol Module Debugging Support (ip)

Internet Protocol Dcmds

Internet Protocol Walkers

Kernel Runtime Link Editor Debugging Support (krtld)

Kernel Runtime Link Editor Dcmds

Kernel Runtime Link Editor Walkers

USB Framework Debugging Support (uhci)

USB Host Controller Dcmds

USB Host Controller Walkers

USB Framework Debugging Support (usba)

USB Framework Dcmds

USB Framework Walkers

x86: x86 Platform Debugging Support (unix)

x86 Platform Dcmds

x86 Platform Walkers

SPARC: sun4u Platform Debugging Support (unix)

sun4u Platform Dcmds

sun4u Platform Walkers

9.  Debugging With the Kernel Memory Allocator

10.  Module Programming API

A.  MDB Options

B.  Notes

C.  Transition From adb and kadb

D.  Transition From crash

Index

Interprocess Communication Debugging Support (ipc)

The ipc module provides debugging support for the implementation of the message queue, semaphore, and shared memory interprocess communication primitives.

Interprocess Communication Dcmds

::ipcs [-l]

Display a listing of system-wide IPC identifiers, corresponding to known message queues, semaphores, and shared memory segments. If the -l option is specified, a longer listing of information is shown.

address ::msg [-l] [-t type]

Display the properties of the specified message queue element (struct msg). If the -l option is present, the raw contents of the message are displayed in hexadecimal and ASCII. If the -t option is present, it can be used to filter the output and only display messages of the specified type. This can be useful when piping the output of the msgqueue walker to ::msg.

id ::msqid [-k]

Convert the specified message queue IPC identifier to a pointer to the corresponding kernel implementation structure and print the address of this kernel structure. If the -k option is present, the id is instead interpreted as a message queue key to match (see msgget(2)).

[ address ] ::msqid_ds [-l]

Print the specified msqid_ds structure or a table of the active msqid_ds structures (message queue identifiers). If the -l option is specified, a longer listing of information is displayed.

id ::semid [-k]

Convert the specified semaphore IPC identifier to a pointer to the corresponding kernel implementation structure and print the address of this kernel structure. If the -k option is present, the id is instead interpreted as a semaphore key to match (see semget(2)).

[ address ] ::semid_ds [-l]

Print the specified semid_ds structure or a table of the active semid_ds structures (semaphore identifiers). If the -l option is specified, a longer listing of information is displayed.

id ::shmid [-k]

Convert the specified shared memory IPC identifier to a pointer to the corresponding kernel implementation structure and print the address of this kernel structure. If the -k option is present, the id is instead interpreted as a shared memory key to match (see shmget(2)).

[ address ] ::shmid_ds [-l]

Print the specified shmid_ds structure or a table of the active shmid_ds structures (shared memory segment identifiers). If the -l option is specified, a longer listing of information is displayed.

Interprocess Communication Walkers

msg

Walk the active msqid_ds structures corresponding to message queue identifiers. This structure is defined in <sys/msg.h>.

msgqueue

Iterate over the message structures that are currently enqueued on the specified message queue.

sem

Walk the active semid_ds structures corresponding to semaphore identifiers. This structure is defined in <sys/sem.h>.

shm

Walk the active shmid_ds structures corresponding to shared memory segment identifiers. This structure is defined in <sys/shm.h>.