more tunable work
This commit is contained in:
parent
758618b1f3
commit
ddea18b0ad
@ -42,6 +42,28 @@ define(`optional_policy',`
|
|||||||
')
|
')
|
||||||
')
|
')
|
||||||
|
|
||||||
|
##############################
|
||||||
|
#
|
||||||
|
# Determine if we should use the default
|
||||||
|
# tunable value as specified by the policy
|
||||||
|
# or if the override value should be used
|
||||||
|
#
|
||||||
|
define(`deflt_or_overr',`ifdef(`$1',$1,$2)')
|
||||||
|
|
||||||
|
##############################
|
||||||
|
#
|
||||||
|
# Tunable declaration
|
||||||
|
#
|
||||||
|
define(`tunable_def',`
|
||||||
|
ifdef(`monolithic_policy',`
|
||||||
|
bool $1 deflt_or_overr(`$1'_conf,$2);
|
||||||
|
',`
|
||||||
|
# loadable module tunable
|
||||||
|
# declaration will go here
|
||||||
|
# for $1 $2
|
||||||
|
')
|
||||||
|
')
|
||||||
|
|
||||||
##############################
|
##############################
|
||||||
#
|
#
|
||||||
# Tunable policy handling
|
# Tunable policy handling
|
||||||
|
Loading…
Reference in New Issue
Block a user