9c08 [Solved] Porting the Linux "mempool" mechanism to FreeBSD - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Development > FreeBSD Development

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

Reply
 
Thread Tools Display Modes
  #1  
Old December 8th, 2011, 00:26
liuwang liuwang is offline
Junior Member
 
Join Date: Aug 2011
Posts: 29
Thanks: 5
Thanked 0 Times in 0 Posts
Default Porting the Linux "mempool" mechanism to FreeBSD

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

Code:
mempool_t AOC_mempool;

mempool_alloc( ... )
mempool_free( ... )
mempool_destroy( ... )
Sincerely,
Liu

Last edited by DutchDaemon; December 8th, 2011 at 04:07.
Reply With Quote
  #2  
Old December 8th, 2011, 13:58
trasz@ trasz@ is offline
FreeBSD Developer
 
Join Date: Feb 2008
Location: Warszawa, Poland
Posts: 178
Thanks: 7
Thanked 37 Times in 29 Posts
Default

You mean kernel or userland? For kernel, you already have memory pools, see uma(9).

Last edited by phoenix; December 8th, 2011 at 19:41. Reason: Add man tag.
Reply With Quote
The Following User Says Thank You to trasz@ For This Useful Post:
liuwang (December 8th, 2011)
  #3  
Old December 8th, 2011, 19:54
liuwang liuwang is offline
Junior Member
 
Join Date: Aug 2011
Posts: 29
Thanks: 5
Thanked 0 Times in 0 Posts
Default

trasz,

It's kernel.
Thanks the help.

Sincerely,
Liu
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Porting Linux TI_usb_3410_5052 driver el_report Porting New Software 3 November 1st, 2011 22:30
Porting Linux drivers to Freebsd viswesh Porting New Software 1 September 16th, 2011 09:19
Porting drivers from Linux to FreeBSD Meroque FreeBSD Development 3 December 20th, 2010 08:20
Porting Linux IOCTL based applications kantor Porting New Software 8 May 14th, 2009 07:50
Pre-Porting from linux questions dcbdbis General 6 February 10th, 2009 07:01


All times are GMT +1. The time now is 14:04.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0