[prev in list] [next in list] [prev in thread] [next in thread] 

List:       hpux-devtools
Subject:    HPUX-DEVTOOLS: How to get shminfo ???
From:       William Blair Wagner <blairw () triadnewton ! com>
Date:       2000-02-08 22:20:34
[Download RAW message or body]

Hey gang,

Here's a real touch one!

I support, maintain, and develop an application that works heavily with shared
memory. So, as part of my installation & configuration software, I need to know
the maximum size of shared memory on the system being installed on.

My application is developed and built on HP-UX 10.20, but is ported to HP-UX
11.0. Its desiged to run on 32bit or 64bit platforms. Currently, there's no
value in converting it to a true 64bit application, so I dont. Most of my
customers (95%) are on 10.20 anyway. But, I need 11.0, including 64bit for our
new customers on L & N class servers.

Anyway, I've always used nlist() to list the symbols in /stand/vmunix, then
offset into /dev/kmem to get the integer value of shminfo. That's worked just
super in the past.

BUT, HP's nlist() only supports SOM binary objects, which are inherently 32bit
only.  So, my configurator works fine on 10.20 & 11.0 32bit, but chokes hard on
11.0 64bit.

Remember, I need to continue to build on 10.20 to support my largest customer
base.

How, at all, can I, portably across 10.20 through 11.0-64bit, inquire and
acquire the value of the kernel global shminfo?

...come on, gang.  Someone out there's gotta know.  I've currently got HP TAC
working on it, but based on the amount of time they've take, with no solution, I
suspect they're beginning to flounder.

I will be more than happy to summarize to both lists.


-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
: William Blair Wagner :"Education is not always knowing the answer, :
: CCI/Triad Company    : ..but rather knowing where to look for it!" :
: blairw@triadnewton.com                                             :
: UltimatePlus Software Engineer                                     :
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 _________________________________________________________________
 To leave this mailing list, send mail to majordomo@cxx.cup.hp.com
    with the message UNSUBSCRIBE hpux-devtools
 _________________________________________________________________

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic