How to register a sysctl table on linux-2.6.25?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I am really confused by the method of registering a sysctl table.I can register it normally on linux-2.4 with the function register_sysctl_table(struct ctl_table,int),but failed with register_sysctl_table(struct ctl_table) & register_sysctl_paths(struct ctl_path,struct ctl_table) on linux-2.6.25.9 with error message:"sysctl table check failed, /net/xxx Unknown sysctl binary path".
in summary,I made the
struct ctl_path net_ipv4_ctl_path[] = {
    { .procname = "net", .ctl_name = CTL_NET, },
    { .procname = "xxx", .ctl_name = an_int, },
    { },
};

if any solutions & materials about it are really appreciated!

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux