<div dir="ltr"><div style="font-family:arial,sans-serif;font-size:13px">This is to discuss the problems I am facing with a driver built on a  2.6.18 kernel.<br></div><div style="font-family:arial,sans-serif;font-size:13px">
<br></div><div style="font-family:arial,sans-serif;font-size:13px">In the driver code, a system call has been  imported as a module function.</div><div style="font-family:arial,sans-serif;font-size:13px"> Can this be done? The module is building all right without any error.</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">I am providing the link to the source code repository for the same to understand this problem.</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px"> Here is the function definition in the module code-</div><div style="font-family:arial,sans-serif;font-size:13px">
<a href="https://github.com/HeisSpiter/hepunion/blob/096b2950aaf0626abf51098195b89bde28c8178c/fs/hepunion/helpers.c#L470">https://github.com/HeisSpiter/hepunion/blob/096b2950aaf0626abf51098195b89bde28c8178c/fs/hepunion/helpers.c#L470</a><br>
</div><div><br></div><div>This function long mkdir(......) has most probably imported sytem call sys_mkdir since no other instance of mkdir is there in the kernel source tree.</div><div><a href="http://lxr.linux.no/linux+v2.6.18/include/linux/syscalls.h#L389">http://lxr.linux.no/linux+v2.6.18/include/linux/syscalls.h#L389</a><br>
</div><div><br></div><div>Please somebody explain this.</div><div><br></div><div>Regards,</div><div>Saket Sinha</div></div>