FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
kernelscript/examples/sysctl_demo.ks at main · multikernel/kernelscript · GitHub
multikernel
/
kernelscript
Public
Notifications
You must be signed in to change notification settings
Fork
24
Star
508
Code
Issues
2
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
kernelscript
/
examples
/
sysctl_demo.ks
Copy path
More file actions
More file actions
Latest commit
History
History
History
13 lines (11 loc) · 294 Bytes
Breadcrumbs
kernelscript
/
examples
/
sysctl_demo.ks
Copy path
File metadata and controls
13 lines (11 loc) · 294 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
@sysctl
(
"kernel.ostype"
)
var ostype: str
(
32
)
@sysctl
(
"net.core.somaxconn"
)
var somaxconn: u32
@xdp fn passthrough
(
ctx:
*
xdp_md
)
-
>
xdp_action {
return
2
}
fn main
()
-
>
i32 {
var was: u32
=
somaxconn
print
(
"ostype="
, ostype,
" somaxconn="
, was
)
somaxconn
=
4096
return
0
}
Back
|
FazBrowse Home
|
New Git URL