Skip to contentSkip to conversation

sys_close undefined on x86_64

DISCUSSION Andi Kleen 1 participant 1 message Jun 13, 2004 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Andi Kleen

author
#1 lore raw
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_close undefined message when attempting to load the module.

Quoted 6 lines

The other sys_ functions seem to be there.

If the use of sys_close has 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