sys_close undefined on x86_64
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 12 lines · John Stebbins
Can someone tell me if this is a kernel bug or a problem with the module I'm trying to compile?
I'm attempting to compile an external module for the PVR-250 mpeg-2 capture card (ivtv module). The driver is a little behind the times, but various people have persuaded it to compile and load on 2.6 systems. I had it running on i386 arch 2.6 kernel earlier. But I've since upgraded to
x86_64.insmod fails with
sys_closeundefined message when attempting to load the module.
Quoted 6 lines
The other
sys_functions seem to be there.If the use of
sys_closehas been deprecated or something, could someone please give me a pointer to the right way to do syscalls in the 2.6 kernels. I've done some digging and just can't find any useful information.
It's just not exported and x86-64 unlike i386 calls in kernel system calls directly. In theory it could be exported (stick a EXPORT_SYMBOL(sys_close) somewhere in the main kernel), however it would be better to change the driver to not use it and use a private file or no file at all.
-Andi