Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

rminit(9r) [osf1 man page]

rminit(9r)																rminit(9r)

NAME
rminit - General: Initializes a resource map SYNOPSIS
void rminit( struct map *map_struct, long size, long addr, char *name, int mapsize ); ARGUMENTS
Specifies a pointer to a map structure to be initialized by a call to rminit. Specifies the size elements used to initialize the resource map. Specifies the address that identifies the start of the free elements. Specifies the name for the resource map. The rminit routine uses this name in warning messages when the map overflows. Specifies the maximum number of fragments. DESCRIPTION
The rminit routine initializes the specified resource map to have mapsize - 2 segments. The routine also identifies this resource map with the string passed to the name argument. It prints this name if the slots become so fragmented that space is lost. The resource map itself is initialized with size elements free, starting at the address specified in addr. NOTES
The caller is responsible for providing any locking necessary for the map structure that the system passes to the rminit routine. RETURN VALUES
None SEE ALSO
Routines: rmalloc(9r), rmfree(9r), rmget(9r) rminit(9r)

Check Out this Related Man Page

rmallocmap(9F)						   Kernel Functions for Drivers 					    rmallocmap(9F)

NAME
rmallocmap, rmallocmap_wait, rmfreemap - allocate and free resource maps SYNOPSIS
#include <sys/ddi.h> #include <sys/sunddi.h> struct map *rmallocmap(size_t mapsize); struct map *rmallocmap_wait(size_t mapsize); void rmfreemap(struct map *mp); INTERFACE LEVEL
Architecture independent level 1 (DDI/DKI). PARAMETERS
mapsize Number of entries for the map. mp A pointer to the map structure to be deallocated. DESCRIPTION
rmallocmap() dynamically allocates a resource map structure. The argument mapsize defines the total number of entries in the map. In par- ticular, it is the total number of allocations that can be outstanding at any one time. rmallocmap() initializes the map but does not associate it with the actual resource. In order to associate the map with the actual resource, a call to rmfree(9F) is used to make the entirety of the actual resource available for allocation, starting from the first index into the resource. Typically, the call to rmallocmap() is followed by a call to rmfree(9F), passing the address of the map returned from rmallocmap(), the total size of the resource, and the first index into the actual resource. The resource map allocated by rmallocmap() can be used to describe an arbitrary resource in whatever allocation units are appropriate, such as blocks, pages, or data structures. This resource can then be managed by the system by subsequent calls to rmalloc(9F), rmal- loc_wait(9F), and rmfree(9F). rmallocmap_wait() is similar to rmallocmap(), with the exception that it will wait for space to become available if necessary. rmfreemap() deallocates a resource map structure previously allocated by rmallocmap() or rmallocmap_wait(). The argument mp is a pointer to the map structure to be deallocated. RETURN VALUES
Upon successful completion, rmallocmap() and rmallocmap_wait() return a pointer to the newly allocated map structure. Upon failure, rmal- locmap() returns a NULL pointer. CONTEXT
rmallocmap() and rmfreemap() can be called from user, kernel, or interrupt context. rmallocmap_wait() can only be called from user or kernel context. SEE ALSO
rmalloc(9F), rmalloc_wait(9F), rmfree(9F) Writing Device Drivers SunOS 5.10 20 Nov 1996 rmallocmap(9F)
Man Page

11 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Security Configuration for a relic.

I have inherited a box with 3.4 running (very old) on it and would like to know if there is any good documentation for locking down the system. Other words a map for the configs that need to be done. Any help, Thanks. (1 Reply)
Discussion started by: Luc
1 Replies

2. Shell Programming and Scripting

format output

I have a text file that I want a script to parse and grab only the relavent stuff. No idea where to start.. This is the text file.212 0.00000 ? -> (multicast) ETHER Type=2000 (Unknown), size = 344 bytes 0: 0100 0ccc cccc 000b 5f95 0fbe 014a aaaa ........_....J..... (7 Replies)
Discussion started by: Tornado
7 Replies

3. UNIX for Dummies Questions & Answers

Unix command in mind map

I found this link that might be useful for a newbie to remember unix commands. It use mind map technique and summarize everything within one page. http://mind-map-you.blogspot.com/2006/12/unix-command-in-mind-map.html (0 Replies)
Discussion started by: bani100
0 Replies

4. AIX

vpath to an hdisk

Is there a simply way for me to map a vpath to an hdisk on AIX 5.2? (5 Replies)
Discussion started by: 2dumb
5 Replies

5. Programming

STL map

Hi there, I am using the STL map and I print the map using: map <string, float> ngram_token_index ; map <string, float>::iterator map_iter ; //read the map ... // print the map for ( map_iter = ngram_token_index.begin() ; map_iter != ngram_token_index.end() ; map_iter++ ) cout << ... (2 Replies)
Discussion started by: superuser84
2 Replies

6. Programming

C++ map program - Error message

Hi All I am compiling a STL map program in HP-UX using aCC compiler #include <iostream.h> #include <sys/map.h> #include <string> #include <string.h> int main() { map<string, long> directory; } $ aCC map3.cpp Error 318: "map3.cpp", line 7 # A template name was expected... (0 Replies)
Discussion started by: dhanamurthy
0 Replies

7. Programming

Map - printing all elements - why?

Hi All I have written a map program. The program is simple I have the input file input.dat which has the following BLACK 000180 TECH1 BLUE 000340 TECH2 I want to map a=first row ie Black 000180 and TECH1 a=second row i.e BLUE 000340 and TECH2 struct CHAR { char chr; char val;... (0 Replies)
Discussion started by: dhanamurthy
0 Replies

8. UNIX for Dummies Questions & Answers

WHat do these error messages mean

New to UNIX. I saw these messages in my logs. What do they mean? What is a forward and reverse map? Unable to add forward map from Rogers.ga.com to 205.150.86.252: timed out unable to add reverse map from 241.86.150.205.in-addr.arpa. to FFXXB2RNHR71.NA.XOM.COM: timed out (2 Replies)
Discussion started by: mojoman
2 Replies

9. Solaris

Mmap with fork : Resource unavaialable temporarily

installed 64bit 16GB VM on 64bit ESX server. Written small C code to map the 2GB of memory by mmap after creating 3 child and map getting failed by throwing "resource unavailable temporarily" after mapping 1.6 GB of memory out of 2GB. But same 1.5Gb memory mapping works fine. I checked... (0 Replies)
Discussion started by: siddharoodh
0 Replies

10. Shell Programming and Scripting

Grep and map in perl

Hi guys, I'm trying to learn grep and map and having a little problem. Let's say I have a file which contains: Apple: abcdcabdadddbac I want to replace any combinations of three of abcd, thus when I do this: print grep {s/{3}/X/g} <F>; # will do the subtitution fine, output XXXX ... (1 Reply)
Discussion started by: new bie
1 Replies

11. Shell Programming and Scripting

Split string into map (Associative Array)

Hi Input: { committed = 782958592; init = 805306368; max = 1051394048; used = 63456712; } Result: A map (maybe Associative Array) where I can iterate through the key/value. Something like this: for key in $map do echo key=$key value=$map done Sample output from the map: ... (2 Replies)
Discussion started by: chitech
2 Replies