RTEMS: rtems_capture_record_lock_context Struct Reference

| RTEMS 5.4-rc2

Loading...
Searching...
No Matches
Data Fields
rtems_capture_record_lock_context Struct Reference
API » Tracing » RTEMS Capture Engine

Capture record lock context. More...

`#include <capture.h>`

## Data Fields
rtems_interrupt_lock_context | lock_context
rtems_interrupt_lock * | lock

## Detailed Description

Capture record lock context.

This structure is used to lock a per CPU buffer when opeining recording. The per CPU buffer is held locked until the record close is called. Locking masks interrupts so use this lock only when needed and do not hold it for long.

The lock first masks the CPU interrupt before taking the interrupt lock. This stops a thread context taking the lock and then an interrupt on the same CPU attempting to take the lock so creating a deadlock.

The documentation for this struct was generated from the following file:

- cpukit/include/rtems/capture.h