FUNCTION::SOCK\_FAM\_S(3stap) Socket Tapset FUNCTION::SOCK\_FAM\_S(3stap)

# [NAME](#NAME)

function::sock\_fam\_str2num - Given a protocol family name (string), return the corresponding protocol family number

# [SYNOPSIS](#SYNOPSIS)

```


    sock_fam_str2num:long(family:string)
```

# [ARGUMENTS](#ARGUMENTS)

*family*

The family name

# [SEE ALSO0](#SEE_ALSO0)

[*tapset::socket*(3stap)](/man/enterprise-packages/systemtap/tapset::socket.3stap)

September 2026 SystemTap Tapset Reference Ver

---

Document: function::sock_fam_str2num(3stap) from systemtap 5.6-r1 (Chainguard OS)
Source: https://sourceware.org/git/systemtap.git
