[pso] [kmalloc]

Bogdan Ardeleanu bogdanardeleanu at gmail.com
Sun Mar 19 02:35:13 EET 2006


Merci mult!...Ma dusese in eroare un citat din laboratorul 2:

#include <linux/malloc.h>
>
> if(!(string=kmalloc(string_len+1, GFP_KERNEL))) {
> 	//report error: -ENOMEM;
> }
>
>
Am gasit "kmalloc(...)" definita in <linux/malloc.h> pentru kernel: 1.0.9 ,
1.2.13, 2.0.4
De la 2.2... in <linux/slab.h>

Se pare ca laboratorul nu a fost prea exact!



On 3/17/06, Andrei Damian <andrei_dam at yahoo.com> wrote:
>
> Eu am folosit :
> linux/slab.h
>
> si a mers minunat
> (am gasit pe lxr.linux.no unde era definita functia kmalloc)
>
> Andrei Damian
>
>
> *Bogdan Ardeleanu <bogdanardeleanu at gmail.com>* wrote:
>
> pe masina virtuala exista fisierul:
>
>  /usr/include/linux/malloc.h    ???
>
> de ce? Trebuie pentru a folosi kmalloc()...la mine nu e!
> _______________________________________________
> pso mailing list
> pso at cursuri.cs.pub.ro
> http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/pso
>
> ------------------------------
> Yahoo! Mail
> Bring photos to life! New PhotoMail
> <http://pa.yahoo.com/*http://us.rd.yahoo.com/evt=39174/*http://photomail.mail.yahoo.com>makes sharing a breeze.
>
>
> _______________________________________________
> pso mailing list
> pso at cursuri.cs.pub.ro
> http://cursuri.cs.pub.ro/cgi-bin/mailman/listinfo/pso
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cursuri.cs.pub.ro/pipermail/pso/attachments/20060318/3c8d4ddb/attachment.html


More information about the pso mailing list