Discussion:
ioctl implementation in VxBus
(too old to reply)
Vishakh M
2015-06-02 13:33:20 UTC
Permalink
Hi all,
I am trying to develop a VxBus driver. But i am not able to understand how ioctl calls are handeled here.
How ioctl calls can be registered with the I/O framework?

Can someone help me to understand this?
Kisung Cho
2015-09-03 05:51:46 UTC
Permalink
Post by Vishakh M
Hi all,
I am trying to develop a VxBus driver. But i am not able to understand how ioctl calls are handeled here.
How ioctl calls can be registered with the I/O framework?
Can someone help me to understand this?
why anyone not reply this.
i'm also not expert but i read "VxWorks Device Driver Developer's Guide"
check this?
sorry not help much
Kisung Cho
2015-09-03 05:58:38 UTC
Permalink
Post by Vishakh M
Hi all,
I am trying to develop a VxBus driver. But i am not able to understand how ioctl calls are handeled here.
How ioctl calls can be registered with the I/O framework?
Can someone help me to understand this?
why anyone not reply this?
i'm also not expert but i read "VxWorks Device Driver Developer's Guide"
and below can be helpful
blkDevInitStruct.bd_blkRd = (FUNCPTR)myBlockRead; //FUNCPTR. function to read blocks
blkDevInitStruct.bd_blkWrt = (FUNCPTR)myBlkDevWrt; //FUNCPTR. function to write blocks
blkDevInitStruct.bd_ioctl = (FUNCPTR)myBlkDevIoctl; //FUNCPTR. function to ioctl device
blkDevInitStruct.bd_reset = (FUNCPTR)myBlkDevReset; //FUNCPTR. function to reset device
blkDevInitStruct.bd_statusChk = (FUNCPTR)myBlkDevStatus; //FUNCPTR. function to check status
Kisung Cho
2015-09-03 06:07:32 UTC
Permalink
Post by Kisung Cho
Post by Vishakh M
Hi all,
I am trying to develop a VxBus driver. But i am not able to understand how ioctl calls are handeled here.
How ioctl calls can be registered with the I/O framework?
Can someone help me to understand this?
why anyone not reply this?
i'm also not expert but i read "VxWorks Device Driver Developer's Guide"
and below can be helpful
blkDevInitStruct.bd_blkRd = (FUNCPTR)myBlockRead; //FUNCPTR. function to read blocks
blkDevInitStruct.bd_blkWrt = (FUNCPTR)myBlkDevWrt; //FUNCPTR. function to write blocks
blkDevInitStruct.bd_ioctl = (FUNCPTR)myBlkDevIoctl; //FUNCPTR. function to ioctl device
blkDevInitStruct.bd_reset = (FUNCPTR)myBlkDevReset; //FUNCPTR. function to reset device
blkDevInitStruct.bd_statusChk = (FUNCPTR)myBlkDevStatus; //FUNCPTR. function to check status
check the below URL
http://studies.ac.upc.edu/doctorat/ENGRAP/VxWorks-device-drivers.htm
Kisung Cho
2015-09-03 06:19:40 UTC
Permalink
Post by Kisung Cho
Post by Kisung Cho
Post by Vishakh M
Hi all,
I am trying to develop a VxBus driver. But i am not able to understand how ioctl calls are handeled here.
How ioctl calls can be registered with the I/O framework?
Can someone help me to understand this?
why anyone not reply this?
i'm also not expert but i read "VxWorks Device Driver Developer's Guide"
and below can be helpful
blkDevInitStruct.bd_blkRd = (FUNCPTR)myBlockRead; //FUNCPTR. function to read blocks
blkDevInitStruct.bd_blkWrt = (FUNCPTR)myBlkDevWrt; //FUNCPTR. function to write blocks
blkDevInitStruct.bd_ioctl = (FUNCPTR)myBlkDevIoctl; //FUNCPTR. function to ioctl device
blkDevInitStruct.bd_reset = (FUNCPTR)myBlkDevReset; //FUNCPTR. function to reset device
blkDevInitStruct.bd_statusChk = (FUNCPTR)myBlkDevStatus; //FUNCPTR. function to check status
check the below URL
http://studies.ac.upc.edu/doctorat/ENGRAP/VxWorks-device-drivers.htm
http://read.pudn.com/downloads97/sourcecode/others/395078/vxworks%E6%95%99%E7%A8%8B/DeviceDriver/DD/instructor/testProgs40/LAB7/lambDrv.c__.htm
Kisung Cho
2015-09-03 06:24:07 UTC
Permalink
Post by Kisung Cho
Post by Kisung Cho
Post by Kisung Cho
Post by Vishakh M
Hi all,
I am trying to develop a VxBus driver. But i am not able to understand how ioctl calls are handeled here.
How ioctl calls can be registered with the I/O framework?
Can someone help me to understand this?
why anyone not reply this?
i'm also not expert but i read "VxWorks Device Driver Developer's Guide"
and below can be helpful
blkDevInitStruct.bd_blkRd = (FUNCPTR)myBlockRead; //FUNCPTR. function to read blocks
blkDevInitStruct.bd_blkWrt = (FUNCPTR)myBlkDevWrt; //FUNCPTR. function to write blocks
blkDevInitStruct.bd_ioctl = (FUNCPTR)myBlkDevIoctl; //FUNCPTR. function to ioctl device
blkDevInitStruct.bd_reset = (FUNCPTR)myBlkDevReset; //FUNCPTR. function to reset device
blkDevInitStruct.bd_statusChk = (FUNCPTR)myBlkDevStatus; //FUNCPTR. function to check status
check the below URL
http://studies.ac.upc.edu/doctorat/ENGRAP/VxWorks-device-drivers.htm
http://read.pudn.com/downloads97/sourcecode/others/395078/vxworks%E6%95%99%E7%A8%8B/DeviceDriver/DD/instructor/testProgs40/LAB7/lambDrv.c__.htm
ftp://ftp.desy.de/pub/EPICS/vx_GPFC/h/blkIo.h

Loading...