lkml.org 
[lkml]   [2000]   [Sep]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectkernel/dma.c question
 Hi,

First of all, i am new to kernel, so please correct me if i am wrong or
explain if i don't get something.
Why does free_dma get declared with different return types in dma.c ?

from kernel/dma.c (kernel test9-pre6)
#ifdef MAX_DMA_CHANNELS
...
void free_dma(unsigned int dmanr)
...
#else
...
int free_dma(unsigned int dmanr)
...
#endif

from include/asm-i386/dma.h
...
#define MAX_DMA_CHANNELS 8
...
extern void free_dma(unsigned int dmanr)
...

Why does get_dma_list blindly write to a buffer (kernel/dma.c line 73) ?
Is there some way to protect oneself from buffer overflows in kernel
(some memory checking function) ?

Thanks in advance.
Regards,
Boria
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 12:38    [W:0.038 / U:7.184 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site