Operating System - Linux
1827862 Members
2255 Online
109969 Solutions
New Discussion

Re: Porting Linux kernel module to HP-UX 10.2

 
Rajesh A K
Occasional Contributor

Porting Linux kernel module to HP-UX 10.2

Sorry if this is not the appropriate forum.

We have developed a Linux loadable kernel module that uses TCP/IP socket services in kernel. We are studying the issues involved in porting this module to HP-UX 10.2. Appreciate if someone could answer our queries in this regard?
1. Are TCP/IP socket interfaces in kernel well known or published in HP-UX 10.2 ?
2. There may be kernel modules within HP-UX kernel that need networking features. How do these module interact with TCP/IP stack ?

Thanks much.
5 REPLIES 5
harry d brown jr
Honored Contributor

Re: Porting Linux kernel module to HP-UX 10.2


Products like sniff, snoop, lsof and others have been ported to hpux. here's a list of some hp info:

BSD Sockets Interface Programmer's Guide
http://www.docs.hp.com/hpux/onlinedocs/B2355-90116/B2355-90116.html

DLPI Programmer's Guide
http://www.docs.hp.com/hpux/onlinedocs/B2355-90093/B2355-90093.html

Installing and Administering LAN/9000 Software (HP-UX 10.x)
http://www.docs.hp.com/hpux/onlinedocs/B2355-90105/B2355-90105.html

Networking Overview (HP-UX 10.x)
http://www.docs.hp.com/hpux/onlinedocs/B2355-90140/B2355-90140.html

Although not 10.20, this is a good guide for 11i:
IPv6 Porting Guide (HP-UX 11i)
http://www.docs.hp.com/hpux/onlinedocs/netcom/ipv6portingguide.pdf


You'll find a lot of other stuff here also:

http://www.docs.hp.com/hpux/netcom/index.html#LAN/9000


live free or die
harry
Live Free or Die
harry d brown jr
Honored Contributor

Re: Porting Linux kernel module to HP-UX 10.2

Rajesh,

What else are you looking for?

live free or die
harry
Live Free or Die
G. Vrijhoeven
Honored Contributor

Re: Porting Linux kernel module to HP-UX 10.2

Hi Rajish,

As far as i know DLKM are only supported on UX11 look at this URL:

http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B3782-90716/B3782-90716_top.html&con=/hpux/onlinedocs/B3782-90716/00/00/23-con.html&toc=/hpux/onlinedocs/B3782-90716/00/00/23-toc.html&searchterms=dlkm&queryid=20011105-103532
At docs.hp.com you will find more information on the subject.

Hope this will help.

Gideon
Rajesh A K
Occasional Contributor

Re: Porting Linux kernel module to HP-UX 10.2

Harry,

Thanks for your pointers.

From the documentation on Networking architecture, found out that sosend() and soreceive() are the interfaces used in kernel. But, I dont think these are documented interfaces for driver developers. The driver that we developed uses TCP sockets in kernel to send/receive data. This is pretty much like khttpd in Linux 2.4.x kernel.

I would like to know if there are any documented interfaces in HP-UX 10.2 for using TCP sockets in kernel.

Thanks.