के साथ काम नहीं कर रहा है, मुझे अपने पुराने kernel
मॉड्यूल को संकलित करते समय संकलक त्रुटि मिल रही है जो नेटलिंक फ़ंक्शंस का उपयोग कर रहा है।netlink_kernel_create नवीनतम लिनक्स कर्नेल
int
init_module()
{
/* Initialize the Netlink kernel interface */
nl_sk = netlink_kernel_create(&init_net, 17, 0, recv_cmd, NULL, THIS_MODULE);
if(!nl_sk)
{
printk(KERN_INFO "failed to initialize system (error: 1001)\n");
return -ENOMEM;
}
....
पहले यह ठीक काम करता है लेकिन अब मुझे यह त्रुटि मिल रही है।
error: too many arguments to function 'netlink_kernel_create'
ओएस सूचना
uname -a
Linux ibrar-ahmed 3.8.0-17-generiC#27-Ubuntu SMP Sun Apr 7 19:39:35 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
आपको बहुत धन्यवाद, दोस्त, इससे मुझे बहुत मदद मिली! –