Porting the Linux "mempool" mechanism to FreeBSD

Kernel development, writing drivers, coding, and questions regarding FreeBSD internals.

Porting the Linux "mempool" mechanism to FreeBSD

Postby liuwang » 07 Dec 2011, 23:26

Any help would be appreciated in porting the following Linux "mempool" mechanism to FreeBSD memory management system.

Code: Select all
mempool_t AOC_mempool;

mempool_alloc( ... )
mempool_free( ... )
mempool_destroy( ... )

Sincerely,
Liu
liuwang
Junior Member
 
Posts: 31
Joined: 19 Aug 2011, 19:10

Postby trasz@ » 08 Dec 2011, 12:58

You mean kernel or userland? For kernel, you already have memory pools, see [man=9]uma[/man].
trasz@
Member
 
Posts: 182
Joined: 20 Feb 2008, 22:44
Location: Warszawa, Poland

Postby liuwang » 08 Dec 2011, 18:54

trasz,

It's kernel.
Thanks the help.

Sincerely,
Liu
liuwang
Junior Member
 
Posts: 31
Joined: 19 Aug 2011, 19:10


Return to FreeBSD Development

Who is online

Users browsing this forum: No registered users and 0 guests