Are there any tools to make C drivers written for 32 bit linux, work in 64bit linux?

erick171
erick171 used Ask the Experts™
on
I am contracting for a company and we are attempting to port a 32-bit Linux driver to a 64-bit Linux system. Are there any tools that are capable of doing this conversion for us, or will it need to be manually ported? If it must be manually done, do 64-bit Linux systems support the use of C++ in a kernel module build format?

Thanks in advance for your help!
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Commented:
Are there any tools that are capable of doing this conversion for us, or will it need to be manually ported?
There's no tool; it has to be manually ported.


do 64-bit Linux systems support the use of C++ in a kernel module build format?
The kernel runtime is written in C, kernel drivers have to be coded in C
Commented:
In addition to what pmasotta said above, if you need to port the 32 bit driver to a 64 bit system in C, you might be able to cover a lot of it by using typedefs on your basic data types to redefine them to whatever you expected them to be in a 32 bit environment.  

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial