Adding new syscall to HPUX 10.20 / 11.00

Adding new syscall to HPUX 10.20 / 11.00

Post by Gerry Weave » Thu, 02 Mar 2000 04:00:00



Hi,

I am writing a pseudo device driver for a security application. I want
to define a new syscall to communicate with the driver. Can anyone point
me to a source that would have information on how to do this? I have
seen the LINUX HOWTO on the subject, but would like to find something HP
specific.

Thanks in advance,
Gerry

 
 
 

Adding new syscall to HPUX 10.20 / 11.00

Post by Sudheer » Thu, 02 Mar 2000 04:00:00



> Hi,

> I am writing a pseudo device driver for a security application. I want
> to define a new syscall to communicate with the driver. Can anyone point
> me to a source that would have information on how to do this? I have
> seen the LINUX HOWTO on the subject, but would like to find something HP
> specific.

> Thanks in advance,
> Gerry

Hi,

You can add ioctl() routines on the driver code, which can be triggered by
using ioctl() call from application programs. Otherwise you can use
read/write entry entry points in that driver that can be invoked by their
read/write system calls. These are the standard ways to communicate with
device driver. I didn't get why you are going for new system calls?

You can see sample code from HP-UX Device Driver guide from
http://devresource.hp.com.

Rgds

Sudheer

--
Hewlett Packard India CSY(MPE-Kernel),

Phone  (O) 2251554 XTN 1466/ (R) 5520094

 
 
 

Adding new syscall to HPUX 10.20 / 11.00

Post by Gerry Weave » Fri, 03 Mar 2000 04:00:00


Hi Sudheer,

I am porting an app which was originally written for AIX. I'm afraid I must
provide the same functionality as the AIX version. Do you have some info that
could help me with this?

Thanks for your help,
Gerry



> > Hi,

> > I am writing a pseudo device driver for a security application. I want
> > to define a new syscall to communicate with the driver. Can anyone point
> > me to a source that would have information on how to do this? I have
> > seen the LINUX HOWTO on the subject, but would like to find something HP
> > specific.

> > Thanks in advance,
> > Gerry

> Hi,

> You can add ioctl() routines on the driver code, which can be triggered by
> using ioctl() call from application programs. Otherwise you can use
> read/write entry entry points in that driver that can be invoked by their
> read/write system calls. These are the standard ways to communicate with
> device driver. I didn't get why you are going for new system calls?

> You can see sample code from HP-UX Device Driver guide from
> http://devresource.hp.com.

> Rgds

> Sudheer

> --
> Hewlett Packard India CSY(MPE-Kernel),

> Phone  (O) 2251554 XTN 1466/ (R) 5520094

 
 
 

1. How to port programs from HPUX 10.20 to 11.00

I need to recompile a C program originally compiled (using cc) on an
HPUX 10.20 platform.  The new platform is HPUX 11.00.  Specifically,
the compiler is complaining that it can't find the "codelibs/boolean.h"
header file.  This directory/file exists on HPUX 10.20
under /usr/include but does not exist on HPUX 11.00.  I suppose it has
been replaced by another header file with the same or similar
functionality.

I don't know the differences between HPUX 10.20 and 11.00.  How do I
fix this ?

Sent via Deja.com http://www.deja.com/
Before you buy.

2. How to get more than 64 colors on the X Windows for FBSD 2.1.6?

3. I Need Help Adding Apple 16/1600 on HPUX 10.20

4. USB Memory stick getting Bad Sectors

5. HP-UX 10.20 or 11.00 to YK2

6. ZIP drive

7. HP-UX 10.20 or 11.00 to Y2K

8. Driver for Adaptec AHA2920

9. Can't install GCC on HP 10.20/HP 11.00

10. HP hangs with NCR-SCSI error messages on HP-UX 10.20 & 11.00

11. hpux 10.20 boot problem

12. NIS problems between HPUX 10.20 and FreeBSD 3.0

13. Trygin to run an Applet on Netscape 4.7 on HPUX 10.20