mirror of
https://github.com/opnsense/src.git
synced 2026-04-15 14:29:58 -04:00
Changes for new SMP-safe kobj method dispatch algorithm.
This commit is contained in:
parent
ed86674a3d
commit
6c021c7220
1 changed files with 6 additions and 2 deletions
|
|
@ -283,7 +283,7 @@ function handle_method (static)
|
|||
firstvar = varnames[1];
|
||||
|
||||
if (default == "")
|
||||
default = "0";
|
||||
default = "kobj_error_method";
|
||||
|
||||
# the method description
|
||||
printh("extern struct kobjop_desc " mname "_desc;");
|
||||
|
|
@ -293,8 +293,12 @@ function handle_method (static)
|
|||
line_width, length(prototype)));
|
||||
|
||||
# Print out the method desc
|
||||
printc("struct kobj_method " mname "_method_default = {");
|
||||
printc("\t&" mname "_desc, (kobjop_t) " default);
|
||||
printc("};\n");
|
||||
|
||||
printc("struct kobjop_desc " mname "_desc = {");
|
||||
printc("\t0, (kobjop_t) " default);
|
||||
printc("\t0, &" mname "_method_default");
|
||||
printc("};\n");
|
||||
|
||||
# Print out the method itself
|
||||
|
|
|
|||
Loading…
Reference in a new issue