diff options
author | Randy Dunlap <rdunlap@xenotime.net> | 2006-10-03 01:13:50 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-03 08:03:41 -0700 |
commit | eed34d0fc5e4b89269053ed855ef714edbcf4518 (patch) | |
tree | 62b8756937231eb28dea460cf8a0276fb56dc2eb /kernel/dma.c | |
parent | d3717bdf8f08a0e1039158c8bab2c24d20f492b6 (diff) | |
download | linux-stable-eed34d0fc5e4b89269053ed855ef714edbcf4518.tar.gz linux-stable-eed34d0fc5e4b89269053ed855ef714edbcf4518.tar.bz2 linux-stable-eed34d0fc5e4b89269053ed855ef714edbcf4518.zip |
[PATCH] kernel-doc for kernel/dma.c
Add kernel-doc function headers in kernel/dma.c and use it in DocBook.
Clean up kernel-doc in mca_dma.h (the colon (':') represents a
section header).
Signed-off-by: Randy Dunlap <rdunlap@xenotime.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'kernel/dma.c')
-rw-r--r-- | kernel/dma.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/kernel/dma.c b/kernel/dma.c index aef0a45b7893..2020644c938a 100644 --- a/kernel/dma.c +++ b/kernel/dma.c @@ -62,6 +62,11 @@ static struct dma_chan dma_chan_busy[MAX_DMA_CHANNELS] = { }; +/** + * request_dma - request and reserve a system DMA channel + * @dmanr: DMA channel number + * @device_id: reserving device ID string, used in /proc/dma + */ int request_dma(unsigned int dmanr, const char * device_id) { if (dmanr >= MAX_DMA_CHANNELS) @@ -76,7 +81,10 @@ int request_dma(unsigned int dmanr, const char * device_id) return 0; } /* request_dma */ - +/** + * free_dma - free a reserved system DMA channel + * @dmanr: DMA channel number + */ void free_dma(unsigned int dmanr) { if (dmanr >= MAX_DMA_CHANNELS) { |