---
name: "dev_remove_pack"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/dev_remove_pack"
---

# dev\_remove\_pack(9)

remove packet handler

## NAME

dev\_remove\_pack - remove packet handler

## SYNOPSIS

**void dev\_remove\_pack(struct packet\_type \*** *pt***);**

## ARGUMENTS

*pt*

packet type declaration

## DESCRIPTION

Remove a protocol handler that was previously added to the kernel protocol handlers by **dev\_add\_pack**. The passed packet\_type is removed from the kernel lists and can be freed or reused once this function returns.

This call sleeps to guarantee that no CPU is looking at the packet type after return.

## COPYRIGHT
