On Nov 10, 2007 3:10 AM, Mohammad M Molla <[EMAIL PROTECTED]> wrote: > Let me clarify. I am porting an ethernet driver from Linux to an embedded OS > which does not have memset. So yeh, its in kernel space (not linux kernel) > and I need some software mechanism to zero fill the memory. Also the > platform is MIPS.
How about writing your own custom memset or bzero ? Can be done i guess. thanks > > - Meraj > > > Thomas Petazzoni <[EMAIL PROTECTED]> wrote: > Le Thu, 8 Nov 2007 22:25:29 -0800 (PST), > Mohammad M Molla a écrit : > > > > How can I zero out a large chunk of allocated memory given I don't > > have access to memset/bzero? Is there any efficient way to do that in > > software? > > Your question looks strange: why wouldn't you have access to memset() > or bzero() ? > > In the Linux kernel, memset() is available, so you can use it. > > Sincerly, > > Thomas > -- > Thomas Petazzoni - [EMAIL PROTECTED] > http://{thomas,sos,kos}.enix.org - http://www.toulibre.org > http://www.{livret,agenda}dulibre.org > > -- > To unsubscribe from this list: send an email with > "unsubscribe kernelnewbies" to [EMAIL PROTECTED] > Please read the FAQ at http://kernelnewbies.org/FAQ > > > > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com -- play the game
