LX0-103 · Question #148
What information is displayed by the command cat/proc/dma?
The correct answer is A. whether DMA is enabled. /proc/dma is a kernel virtual file that exposes the registration status of ISA DMA channels, showing which are active and enabled.
Question
What information is displayed by the command cat/proc/dma?
Options
- Awhether DMA is enabled
- Bwhich DMA channels are in use
- Cwhich DMA mode is in use
- Dgeneral information about DMA on the machine
How the community answered
(55 responses)- A89% (49)
- B5% (3)
- C2% (1)
- D4% (2)
Why each option
/proc/dma is a kernel virtual file that exposes the registration status of ISA DMA channels, showing which are active and enabled.
The /proc/dma virtual file is maintained by the Linux kernel and updated dynamically as device drivers register or release ISA DMA channels. Each line pairs a channel number with the driver that has claimed it, directly indicating whether DMA is enabled and active on the running system. This file is the standard kernel-provided mechanism for querying DMA channel enablement status.
The file records channel-to-driver registration mappings; the registration entry itself is what indicates enablement, so listing 'channels in use' is a consequence of DMA being enabled rather than the primary information displayed.
/proc/dma does not report DMA transfer modes such as burst, demand, or cycle-steal; it only records which channels are claimed by which drivers.
/proc/dma contains only per-channel registration entries, not a broad general overview or summary of DMA hardware capabilities on the machine.
Concept tested: Linux /proc/dma virtual file and DMA channel status
Source: https://www.kernel.org/doc/html/latest/filesystems/proc.html
Topics
Community Discussion
No community discussion yet for this question.