Operating System - HP-UX
1826424 Members
3321 Online
109692 Solutions
New Discussion

Kernel module failing with nfs_badop()

 
sharkvicky
Occasional Contributor

Kernel module failing with nfs_badop()

Hi,

When i am trying to read the data using VOP_BREAD() on a vnode corresponding to the NFS filesystem, system is panic'ing with nfs_badop().
can you please let us which interface to use to get the control over NFS IO data.
2 REPLIES 2
Dave Olker
Neighborhood Moderator

Re: Kernel module failing with nfs_badop()

Hi,

I believe you'd need to use VOP_RDWR() instead of VOP_BREAD(). However, if you're doing kernel programming of this kind, like porting drivers to HP-UX, you might want to check the DSPP site (Developer & Solution Partner Program) at http://hp.com/go/dspp to see if they have any resources to aid in kernel programming of this type.

Regards,

Dave


I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
Accept or Kudo
sharkvicky
Occasional Contributor

Re: Kernel module failing with nfs_badop()

Hi Dave,

Thanks for the response.
If i use, VOP_RDWR(), it is working fine.But i cann't intercept the data and I cannot get the control of data flowing in and out. My aim is to control what data flow in and out and need to do encryption/decryption on fly.