lkml.org 
[lkml]   [1999]   [Oct]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH] cdda reading
Date
> Just looking over this patch, it would seem a few things are off a bit:
>
> -= 1 =-
>
> - if ((cgc.buffer = (char *)kmalloc(CD_FRAMESIZE_RAW*ra.nframes,
> + if ((cgc.buffer = (char *)kmalloc(CD_FRAMESIZE_RAW*8,
>
> doesn't this change it from kmalloc'ing a ra.nframes frame block to an 8
> frame block?

Of course at ~16k, this is a lot safer than 75 blocks which would make kmalloc
go "boom". 75 blocks is more than 140K. Might be better to set the limit
closer to 128K for a bit more "efficiency." 48 blocks would be a bit more
"ideal" for the available size of a kmalloc (128k). The fewer commands sent
to the drive the better IMO.

-- Nathan Laredo
laredo@gnu.org

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

\
 
 \ /
  Last update: 2005-03-22 13:54    [W:0.035 / U:5.736 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site