---
name: "function::sock_fam_str2num"
section: "3stap"
platform: "linux"
package: "systemtap-doc"
version: "5.1-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/function::sock_fam_str2num"
---

# function::sock\_fam\_str2num(3stap)

Given a protocol family name (string), return the corresponding protocol family number

## NAME

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

## SYNOPSIS

```
    sock_fam_str2num:long(family:string)
```

## ARGUMENTS

*family*

The family name

## SEE ALSO0

[*tapset::socket*(3stap)](/tapset::socket/3stap.md)
