]> Zhao Yanbai Git Server - minix.git/commit
Add libsockdriver: a library for socket drivers 23/3423/1
authorDavid van Moolenbroek <david@minix3.org>
Sun, 21 Feb 2016 22:15:35 +0000 (22:15 +0000)
committerDavid van Moolenbroek <david@minix3.org>
Thu, 9 Mar 2017 23:39:52 +0000 (23:39 +0000)
commit85723df033e1d687d5a1c1504bdc35063a74cc78
tree00e2bd5e06d54c6bd693881ad1559e6456ce8b66
parent45443f35b5fbb37ddb8b53f6a25e7f19a75f49ea
Add libsockdriver: a library for socket drivers

This library provides abstractions for socket drivers, and should be
used as the basis for all socket driver implementations.  It provides
the following functionality:

  - a function call table abstraction, hiding the details of the
    socket driver protocol with simple parameters and presenting the
    socket driver with callback functions very similar to the BSD
    socket API calls made from userland;
  - abstracting data structures and helper functions for suspending
    and resuming blocking calls;
  - abstracting data structures and helper functions for copying data
    from and to the caller.

Overall, the library is similar to lib{block,char,fs,input,net}driver
in concept.  Some of the abstractions provided here should in fact be
applied to libchardriver as well.  As always, for the case that the
provided message loop is too restrictive, a set of more low-level
message processing functions is provided.

Change-Id: I79ec215f5e195c3b0197e223636f987d3755fb13
distrib/sets/lists/minix-comp/mi
distrib/sets/lists/minix-debug/mi
lib/Makefile
minix/include/minix/Makefile
minix/include/minix/sockdriver.h [new file with mode: 0644]
minix/lib/Makefile
minix/lib/libsockdriver/Makefile [new file with mode: 0644]
minix/lib/libsockdriver/sockdriver.c [new file with mode: 0644]
share/mk/bsd.prog.mk