- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- C function that gives the device class depending o...
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
тАО05-18-2010 01:17 AM
тАО05-18-2010 01:17 AM
Is there any C function/macro in HPUX that gives us the device file class depending on its major number.
lsdev gives us the major number and its corresponding device class. But, I'm looking for a C function that does the same rather than manipulating lsdev output string in my program.
Can some one please help me on this
Thanks,
Naveen
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-18-2010 04:02 AM
тАО05-18-2010 04:02 AM
Re: C function that gives the device class depending on the major number of the device file
Since 'lsdev' can do the heavy-lifting and "understands" driver information, I don't see anything wrong with using a 'popen()' library call to collect the information to parse. Why re-invent a wheel?
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-22-2010 08:46 AM
тАО05-22-2010 08:46 AM
Re: C function that gives the device class depending on the major number of the device file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-25-2010 09:47 AM
тАО05-25-2010 09:47 AM
SolutionIt looks like you were successful, see your previous thread:
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1429017
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-25-2010 09:16 PM
тАО05-25-2010 09:16 PM
Re: C function that gives the device class depending on the major number of the device file
Sorry missed your reply. Yeah i was able to use libIO APIs to get the information.
Thanks for the suggestion