Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 956 Categories, Downloaded 50.246.906 Times

smalloc 1.0

  Date Added: April 23, 2010  |  Visits: 1.243

smalloc

Report Broken Link
Printer Friendly Version


Product Homepage
Download (127 downloads)



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..

Requirements: No special requirements
Platforms: Linux
Keyword: Buffer Kernel Libraries Linux Kernel Malloc Memory Memory Buffer Memory Manager Programming Realtime Linux Kernel Smalloc Static Static Memory
Users rating: 0/10

License: Freeware Size: 7.17 KB
USER REVIEWS
More Reviews or Write Review


SMALLOC RELATED
Libraries  -  DUMA 2.5.8
DUMA (Detect Unintended Memory Access) stops your program on the exact instruction that overruns (or underruns) a malloc() memory buffer. GDB will then display the source-code line that causes the bug. It works by using the virtual-memory...
89.09 KB  
Programming  -  Lightweight malloc debugger 0.16.0
As most other malloc debuggers LMDBG allows detecting memory leaks and double frees. However, unlike others, LMDBG generates *FULL* stacktraces and separates logging from analysis thus allowing to analyse an application on per-module basis.
40.96 KB  
Linux Software  -  Linux 2.6
Linux is a free Unix-type operating system originally created by Linus Torvalds with the assistance of developers around the world. Linux is an independent POSIX implementation and includes true multitasking, virtual memory, shared libraries,...
65 MB  
Utilities  -  Net-SNMP 5.4.1
Net-SNMP project provides tools and libraries relating to the Simple Network Management Protocol. Installation: The `configure shell script attempts to guess correct values for various system-dependent variables used during compilation. It...
3.81 MB  
Libraries  -  plptools 0.18
plptools is a set of libraries and utilities for enabling Unix (mainly Linux) systems to communicate with a Psion palmtop over a serial line. On Linux, a connection over IrDA using the IrCOMM feature is also possible. The following...
1.2 MB  
Programming  -  Electric Fence 2.1.13
Electric Fence (efence) is an open-source library to detect buffer overruns and under-runs in C programs. Here you can find a further development of the original from Bruce Perens. This version includes * a port to MS Windows® NT/2K/XP...
61.44 KB  
Games  -  Boson 0.13
Boson is an OpenGL real-time strategy game. It is designed to run on Unix (Linux) computers, and is built on top of the KDE, Qt and kdegames libraries.
35.33 MB  
Utilities  -  FlBurn 0.0.3
FlBurn is an optical disk burning software for Linux systems, based on the FLTK and libburnia libraries. To compile FlBurn: 1. You must have fltk, libburn and libisofs libraries installed in your system with headers. 2....
911.36 KB  
Utilities  -  Querylog 0.1
Querylog project is a console tool for performing SQL queries on a (log) file. Lines from one or more text files or stdin are matched, using regular expressions to an in memory database on which SQL queries can be performed. You also specify...
6.14 KB  
Programming  -  Portable Object Compiler 0.2.2
Portable Object Compiler project consists of a set of Objective-C class libraries and a precompiler (translator) that generates plain C code..
839.68 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB  
Libraries  -  wolfSSL 4.0.0
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating...
3.88 MB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB