- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Equivalent of asm/atomic.h
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
тАО08-17-2010 06:06 AM
тАО08-17-2010 06:06 AM
While porting from suselinux to HP-UX we are not able to find the file atomic.h.
In suse linux we include
#include
In HP-UX 11.23 ia64 machine what is the equivalent of it ?Thanks in advance
Solved! Go to Solution.
- Tags:
- atomic
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-17-2010 01:08 PM
тАО08-17-2010 01:08 PM
Re: Equivalent of asm/atomic.h
> #include
Why? What's in it that you need? (And are
you doing that on HP-UX?)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-17-2010 01:21 PM
тАО08-17-2010 01:21 PM
Solution"asm" in the pathname indicates the file is related to routines written in assembler: assembler code is definitely not portable to a different CPU architecture, and must be re-implemented. You should read the documentation of your compiler to find out what it can do to guarantee the atomicity of a particular operation, or start learning some ia64 assembler.
The HP-UX kernel API is very different from its Linux counterpart. Don't expect to find a one-to-one match for header files: there is no standard that would determine how the internal APIs of an Unix-style kernel should be structured.
Porting a kernel driver from Linux to HP-UX will be a lot more difficult than porting userspace software that uses only the standard POSIX API which is common to both OSs. You may have to try and understand what the driver is trying to achieve, then re-implement it to get the same result in "HP-UX Way".
If you're porting a driver for HP-UX, I assume you're already familiar with the documentation in the Driver Development Kit?
http://www.hp.com/go/hpux_ddk
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-17-2010 02:09 PM
тАО08-17-2010 02:09 PM
Re: Equivalent of asm/atomic.h
There is
http://h21007.www2.hp.com/portal/site/dspp/menuitem.863c3e4cbcdc3f3515b49c108973a801/?ciid=4308e2f5bde02110e2f5bde02110275d6e10RCRD
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-19-2010 07:39 AM
тАО08-19-2010 07:39 AM
Re: Equivalent of asm/atomic.h
will keep all these points while porting.