---
name: "struct_nand_hw_control"
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/struct_nand_hw_control"
---

# struct\_nand\_hw\_control(9)

Control structure for hardware controller (e.g ECC generator) shared among independent devices

## NAME

struct\_nand\_hw\_control - Control structure for hardware controller (e.g ECC generator) shared among independent devices

## SYNOPSIS

```
struct nand_hw_control {
  spinlock_t lock;
  struct nand_chip * active;
  wait_queue_head_t wq;
};
```

## MEMBERS

lock

protection lock

active

the mtd device which holds the controller currently

wq

wait queue to sleep on if a NAND operation is in progress used instead of the per chip wait queue when a hw controller is available.

## AUTHOR

**Thomas Gleixner** \<tglx@linutronix.de\>

Author.

## COPYRIGHT
