- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: How do you find the number of people mapped to...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-06-2005 06:51 AM
тАО09-06-2005 06:51 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-06-2005 07:43 AM
тАО09-06-2005 07:43 AM
Re: How do you find the number of people mapped to global section?
'What problem are you really trying to solve'
I know, htat may come over just about as lame as 'use INSTALL/LIST...' but seriously, there may be a better way to solve the problem?
Just to be able to report the number is neat and interesting and all, but how do you intend to use that in an application?
Maybe the part of the application which maps the section can also take out a lock, keeping count in the lock value block? A lock is often useful to find out whether the section is properly initialized already or not. It would be a fuzzy count due to processing leaving without clearing out, but getlki coudl be used for an accurate reading (grantcount+cvtcount) / reset.
Maybe trying to map is enough to know whether it is still there or whether the last use left and a delete was effected?
hth,
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-06-2005 07:49 AM
тАО09-06-2005 07:49 AM
Re: How do you find the number of people mapped to global section?
I went looking for something like this a few months back -- and found out that this is currently still a non-trivial problem.
I had some email exchanges with a couple of people in HP support about this -- definitely a wishlist item unless someone has done some freeware work that is not generally available yet.
Robert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-06-2005 07:59 PM
тАО09-06-2005 07:59 PM
Re: How do you find the number of people mapped to global section?
See
http://h71000.www7.hp.com/wizard/wiz_3365.html
http://h71000.www7.hp.com/wizard/wiz_3530.html
http://h71000.www7.hp.com/wizard/wiz_3635.html
http://h71000.www7.hp.com/wizard/wiz_3768.html
Purely Personal Opinion
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-07-2005 11:20 AM
тАО09-07-2005 11:20 AM
Re: How do you find the number of people mapped to global section?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-07-2005 11:30 AM
тАО09-07-2005 11:30 AM
Re: How do you find the number of people mapped to global section?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-07-2005 01:51 PM
тАО09-07-2005 01:51 PM
Re: How do you find the number of people mapped to global section?
// if (ipl < IPL$_ASTDEL) __PAL_MTPR_IPL(ipl);
/* Don't understand this!!!! */
You should be restoring IPL to the level at the start of your routine, which is the intent of the above call.
I think in your case, it's being done for you by the return path through SYS$CMKRNL, but if this routine were entered through an exception change vector, you would probably crash soon after returning to the caller.
There's also a potential issue if the routine happened to be called from a higher IPL, as you can't just drop down to ASTDEL.
Although this is unlikely, when you're writing kernel mode code, you can't leave holes like that open. You're doing all the right things, probing your argument list, taking out appropriate spinlocks locks, mutexes and setting IPL. You need to make a decision about the environment you're prepared to execute from, in terms of IPL and spin locks that may already be held, and check your assumptions.
Like Hein, I'm really not sure WHY you need to know this. There may be a safer and cleaner way of doing what you're really trying to do.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-07-2005 08:53 PM
тАО09-07-2005 08:53 PM
SolutionIt would be best to package this as a system service. See SYS$EXAMPLES:UWSS.C for an example of how.
I would define the argument list as a structure whose members are the correct types for each parameter rather than an array of unit64.
Purely Personal Opinion
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-08-2005 10:47 AM
тАО09-08-2005 10:47 AM
Re: How do you find the number of people mapped to global section?
This has been fun and I'm learning a lot. For example, when I was playing around. I allocated the parameters on the kernel stack and I called my routine getgsi() from kernel mode just like a function call and it returns an ACCVIO from the $probew_1q(). The reason for this is that "callers_mode" is still USER(3). So, I'm starting to understand about what was meant by "the environment." Caller's mode doesn't mean a call frame like I first thought, but from from the last mode change.
even mmg_std$gsdscan() returns ACCVIO if the section name is in kernel mode. So, how does this work. If your in kernel mode, but want to call a system type service (and it is save), you have to do another mode change or go through the system service dispatcher, so that previous mode is kernel instead of still user?
I know, I know - we need a book on writing kernel mode code, but you just don't learn till you do it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-08-2005 08:20 PM
тАО09-08-2005 08:20 PM
Re: How do you find the number of people mapped to global section?
All this is fun and educational but what is the problem you are trying to solve by getting this data?
Purely Personal Opinion