3 The udp framework is build on top of network framework and is designed
4 to define new protocol or new command based on udp without modifying
7 The udp framework define a function udp_loop that take as argument
8 a structure udp_ops (defined in include/net/udp.h) :
11 int (*prereq)(void *data);
12 int (*start)(void *data);
16 The callback prereq define if all the requirements are
17 valid before running the network/udp loop.
19 The callback start define the first step in the network/udp loop,
20 and it may also be used to configure a timemout and udp handler.
22 The pointer data is used to store private data that
23 could be used by both callback.
25 A simple example to use this framework:
27 static struct udp_ops udp_ops = {
35 err = udp_loop(&udp_ops);