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

# function::inet\_get\_local\_port(3stap)

Provide local port number for a kernel socket

## NAME

function::inet\_get\_local\_port - Provide local port number for a kernel socket

## SYNOPSIS

```
    inet_get_local_port:long(sock:long)
```

## ARGUMENTS

*sock*

pointer to the kernel socket

## SEE ALSO0

[*tapset::inet\_sock*(3stap)](/tapset::inet_sock/3stap.md)
