smalloc 1.0
Sponsored Links
smalloc 1.0 Ranking & Summary
File size:
0.007 MB
Platform:
Any Platform
License:
Public Domain
Price:
Downloads:
1355
Date added:
2006-03-22
Publisher:
Calin A Culianu
smalloc 1.0 description
smalloc short from Static memory buffer malloc, is an ideal memory manager for Realtime Linux Kernel modules that cant use dynamic memory offered by kmalloc because of the non-realtime nature of kmalloc.
Like malloc(), smalloc() doles out memory to client code. Unlike malloc, however, smalloc takes a static memory buffer (as an initialization parameter). It is this buffer that smalloc manages when doling out memory to client code.
This design makes smalloc ideal for use inside a Realtime Linux kernel module. It also makes it much easire to port userspace code that relies on malloc() in C or operator new() in C++ for memory management to a realtime kernel module.
For example:
(the below is linux kernel code)
< code >
#include "smalloc.h"
#include < linux/slab.h >
#define MEMPOOLSZ (1024*1024*1024)
char *buf;
...
buf = kmalloc(MEMPOOLSZ, GFP_KERNEL); /* 1 megabyte buffer in kernel
module.. */
smalloc_set_memory_pool(buf, sizeof(buf));
...
MyStruct *s;
s = smalloc(sizeof(MyStruct)); /* example of code that uses this
static memory buffer */
< /code >
The above example is a typical usage pattern of smalloc.
Like malloc(), smalloc() doles out memory to client code. Unlike malloc, however, smalloc takes a static memory buffer (as an initialization parameter). It is this buffer that smalloc manages when doling out memory to client code.
This design makes smalloc ideal for use inside a Realtime Linux kernel module. It also makes it much easire to port userspace code that relies on malloc() in C or operator new() in C++ for memory management to a realtime kernel module.
For example:
(the below is linux kernel code)
< code >
#include "smalloc.h"
#include < linux/slab.h >
#define MEMPOOLSZ (1024*1024*1024)
char *buf;
...
buf = kmalloc(MEMPOOLSZ, GFP_KERNEL); /* 1 megabyte buffer in kernel
module.. */
smalloc_set_memory_pool(buf, sizeof(buf));
...
MyStruct *s;
s = smalloc(sizeof(MyStruct)); /* example of code that uses this
static memory buffer */
< /code >
The above example is a typical usage pattern of smalloc.
smalloc 1.0 Screenshot
smalloc 1.0 Keywords
Realtime Linux Kernel
linux kernel modules
static memory
Memory buffer
Linux kernel
Memory manager
kernel modules
smalloc
memory
kernel
buffer
malloc
static
smalloc 1.0
Libraries
Programming
Bookmark smalloc 1.0
smalloc 1.0 Copyright
WareSeeker periodically updates pricing and software information of smalloc 1.0 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of smalloc 1.0 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed
Featured Software
Want to place your software product here?
Please contact us for consideration.
Contact WareSeeker.com
Related Information
linux kernel development
real time linux kernel
writing linux kernel modules
understanding linux kernel
loading linux kernel modules pciback on boot
linux kernel modules directory
advanced memory buffer
linux kernel source
what is static memory
linux kernel modules guide
how to build linux kernel modules using netbeans
linux kernel version
static memory allocation
linux kernel modules location
linux kernel 2.6
linux kernel modules list
memory upgrade
kernels baseball
Related Software
myOS project is minimalistic GNU/Linux based system. Free Download
chpox provides transparent checkpointing and restarting of processes on Linux clusters. Free Download
Sysprof is a sampling CPU profiler that uses a Linux kernel module to profile the entire system. Free Download
deimos project consists of some platform independent libraries. Free Download
The MPIO Project provides support for using Digitalway/Adtec MPIO digital audio players (DMG, DMK, DME, etc.) under Linux. Free Download
Fuzzled is a powerful fuzzing framework. Free Download
Sentry Firewall CD-ROM is a Linux based bootable CD-ROM suitable for use as an inexpensive and easy to maintain Firewall or IDS. Free Download
Tpl is a binary data interchange format and C API. Free Download
Latest Software
Popular Software
Favourite Software