Make the hw.intrs sysctl OID read-only
The handler ignores the new value, so make the OID read-only. I found this while working on r353111. MFC after: 2 weeks Sponsored by: Dell EMC Isilon
This commit is contained in:
parent
fdd888dee3
commit
a912616493
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=353114
@ -750,7 +750,7 @@ sysctl_hw_intrs(SYSCTL_HANDLER_ARGS)
|
||||
sbuf_delete(&sbuf);
|
||||
return (error);
|
||||
}
|
||||
SYSCTL_PROC(_hw, OID_AUTO, intrs, CTLTYPE_STRING | CTLFLAG_RW,
|
||||
SYSCTL_PROC(_hw, OID_AUTO, intrs, CTLTYPE_STRING | CTLFLAG_RD,
|
||||
0, 0, sysctl_hw_intrs, "A", "interrupt:number @cpu: count");
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user