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!
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!