-
Notifications
You must be signed in to change notification settings - Fork 321
KernelHandlerProxy
KernelHandlerProxy — Click element; proxies kernel module handlers at user level
KernelHandlerProxy([KEYWORDS])
Drivers: userlevel
Provides one proxy handler for each handler in a Linux kernel module Click
configuration. The proxy handler for an element e
's handler h
is named
`e.h
'. Reading KernelHandlerProxy's e.h
handler will return the result
of reading kernel element e
's h
handler. Similarly, writing a string to
KernelHandlerProxy's e.h
handler will cause the proxy to write that string
to kernel element e
's h
handler.
Keyword arguments are:
- VERBOSE — Boolean. If true, print chatter messages when read handlers fail. (Errors with write handlers are reported to the supplied ErrorHandler, but read handlers don't take an ErrorHandler argument.) Default is false.
KernelHandlerProxy does not decide ahead of time whether a given handler is active. Thus, for example, KernelHandlerProxy can report that a handler exists even when no corresponding element exists in the kernel configuration. Any error will be reported when the handler is actually called.
Click configuration:
proxy :: KernelHandlerProxy
ControlSocket(TCP, 8800, PROXY proxy, LOCALHOST true)
Interaction example:
% click-install -e 'x :: Idle'
% telnet localhost 8800
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Click::ControlSocket/1.3
READ list
200 Read handler 'list' OK
DATA 4
1
x
Generated by click-elem2man from ../elements/userlevel/khandlerproxy.hh:6
on 2017/10/17.