---
name: "kgdb_post_primary_code"
section: "9"
platform: "linux"
package: "linux-manual-2.6.32"
version: "2.6.32-48squeeze6"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/kgdb_post_primary_code"
---

# kgdb\_post\_primary\_code(9)

(optional) Save error vector/code numbers.

## NAME

kgdb\_post\_primary\_code - (optional) Save error vector/code numbers.

## SYNOPSIS

**void kgdb\_post\_primary\_code(struct pt\_regs \*** *regs***, int** *e\_vector***, int** *err\_code***);**

## ARGUMENTS

*regs*

Original pt\_regs.

*e\_vector*

Original error vector.

*err\_code*

Original error code.

## DESCRIPTION

This is usually needed on architectures which support SMP and KGDB. This function is called after all the secondary cpus have been put to a know spin state and the primary CPU has control over KGDB.

## AUTHORS

**Jason Wessel** \<jason.wessel@windriver.com\>

Author.

**Tom Rini** \<trini@kernel.crashing.org\>

Author.

**Amit S. Kale** \<amitkale@linsyssoft.com\>

Author.

## COPYRIGHT
