Skip to content
Eddie Kohler edited this page Oct 17, 2017 · 3 revisions

KernelHandlerProxy Element Documentation

NAME

KernelHandlerProxy — Click element; proxies kernel module handlers at user level

SYNOPSIS

KernelHandlerProxy([KEYWORDS])

Drivers: userlevel

DESCRIPTION

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.

NOTES

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.

EXAMPLES

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

SEE ALSO

SocketHandlerProxy

Generated by click-elem2man from ../elements/userlevel/khandlerproxy.hh:6 on 2017/10/17.

Clone this wiki locally