---
name: "sysdecode_cmsg_type"
section: "3"
platform: "freebsd"
package: "base"
version: "16.0-CURRENT-20261027-61c70dc16a79"
release: "FreeBSD 16.0-CURRENT (2026-10-27)"
platforms: ["freebsd"]
url: "https://new.carta.tech/sysdecode_cmsg_type"
---

# sysdecode\_cmsg\_type(3)

lookup name of cmsg type

## NAME

**sysdecode\_cmsg\_type** – lookup name of cmsg type

## LIBRARY

library “libsysdecode”

## SYNOPSIS

**#include \<sysdecode.h\>**

*const* *char* *\**\

**sysdecode\_cmsg\_type**(*int cmsg\_level*, *int cmsg\_type*);

## DESCRIPTION

The **sysdecode\_cmsg\_type**() function returns a text description of the *cmsg\_type* member of a *struct* *cmsghdr*. **sysdecode\_cmsg\_type**() also takes the *cmsg\_level* to uniquely identify the type.

## SEE ALSO

[sysdecode(3)](/sysdecode/3.md)
