- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: how to get current process in hpux11 dlkm
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
тАО07-08-2009 10:24 PM
тАО07-08-2009 10:24 PM
Re: how to get current process in hpux11 dlkm
else in the kernel:
proc_pstat_idx_lookup_hold
proc_pstat_lookup_next_hold
- don(t forget to call proc_release()
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-08-2009 10:27 PM
тАО07-08-2009 10:27 PM
Re: how to get current process in hpux11 dlkm
kt=p_firstthreadp(p)
then you can use kt_nextp(kt)
Then release the hold.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-08-2009 10:29 PM
тАО07-08-2009 10:29 PM
Re: how to get current process in hpux11 dlkm
2 process walk.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-13-2009 07:04 PM
тАО07-13-2009 07:04 PM
Re: how to get current process in hpux11 dlkm
what's the name of proc_list's lock?
how to use proc_list's lock ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-14-2009 12:15 PM
тАО07-14-2009 12:15 PM
Re: how to get current process in hpux11 dlkm
proc_pstat_lookup_next_hold
- don(t forget to call proc_release()
the hold and release is for that
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-15-2009 12:02 AM
тАО07-15-2009 12:02 AM
Re: how to get current process in hpux11 dlkm
how to get absolute path name of the executable file?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-15-2009 03:29 AM
тАО07-15-2009 03:29 AM
Re: how to get current process in hpux11 dlkm
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-15-2009 03:51 AM
тАО07-15-2009 03:51 AM
Re: how to get current process in hpux11 dlkm
Here is how to use pstat(2) calls to get it outside the kernel, not sure if that helps:
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1350198
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-15-2009 04:44 AM
тАО07-15-2009 04:44 AM
Re: how to get current process in hpux11 dlkm
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-15-2009 05:46 AM
тАО07-15-2009 05:46 AM
Re: how to get current process in hpux11 dlkm
q4> disassemble pstat_stub32
Dump of assembler code for function pstat_stub32:
0x8b5678
0x8b567c
0x8b5680
0x8b5684
0x8b5688
0x8b568c
0x8b5690
0x8b5694
0x8b5698
0x8b569c
0x8b56a0
End of assembler dump.
q4> disassemble pstat|more
Dump of assembler code for function pstat:
0x9a358
0x9a35c
0x9a360
0x9a364
0x9a368
0x9a36c
0x9a370
0x9a374