core.shm: Redesigned and reworked
core.shm: Redesigned and reworked

The new API looks like this:

    shm.map(name, type[, readonly]) => ptr
      Map a shared object into memory via a heirarchical name.
    shm.unmap(ptr)
      Delete a memory mapping.
    shm.unlink(path)
      Unlink a subtree of objects from the filesystem.

Changes made following the first round of feedback:

- Single 'map()' operation instead of 'create()' and 'get()'.
- Type is supplied by caller and not stored with the object.
- Object names are/heirarchical/paths.
- Objects are created with open("/var/run/...") instead of shm_open("...").
- Objects can be deleted in bulk via subtree path ("rm -r").

dpino/snabb,plajjan/snabbswitch,pirate/snabbswitch,eugeneia/snabb,alexandergall/snabbswitch,xdel/snabbswitch,eugeneia/snabbswitch,eugeneia/snabb,pavel-odintsov/snabbswitch,pirate/snabbswitch,snabbnfv-goodies/snabbswitch,dwdm/snabbswitch,mixflowtech/logsensor,wingo/snabb,pavel-odintsov/snabbswitch,heryii/snabb,Igalia/snabbswitch,Igalia/snabb,mixflowtech/logsensor,dpino/snabbswitch,hb9cwp/snabbswitch,lukego/snabb,lukego/snabb,fhanik/snabbswitch,wingo/snabbswitch,pavel-odintsov/snabbswitch,Igalia/snabb,justincormack/snabbswitch,justincormack/snabbswitch,kbara/snabb,virtualopensystems/snabbswitch,mixflowtech/logsensor,wingo/snabb,alexandergall/snabbswitch,kbara/snabb,justincormack/snabbswitch,eugeneia/snabbswitch,eugeneia/snabbswitch,Igalia/snabb,plajjan/snabbswitch,hb9cwp/snabbswitch,wingo/snabb,fhanik/snabbswitch,alexandergall/snabbswitch,alexandergall/snabbswitch,SnabbCo/snabbswitch,kbara/snabb,dpino/snabb,kellabyte/snabbswitch,dpino/snabb,dpino/snabb,andywingo/snabbswitch,Igalia/snabbswitch,mixflowtech/logsensor,justincormack/snabbswitch,dwdm/snabbswitch,hb9cwp/snabbswitch,heryii/snabb,virtualopensystems/snabbswitch,aperezdc/snabbswitch,lukego/snabb,aperezdc/snabbswitch,wingo/snabb,Igalia/snabb,eugeneia/snabbswitch,dwdm/snabbswitch,hb9cwp/snabbswitch,dpino/snabb,andywingo/snabbswitch,kellabyte/snabbswitch,kellabyte/snabbswitch,wingo/snabb,pirate/snabbswitch,mixflowtech/logsensor,alexandergall/snabbswitch,snabbco/snabb,aperezdc/snabbswitch,snabbnfv-goodies/snabbswitch,Igalia/snabbswitch,plajjan/snabbswitch,eugeneia/snabb,snabbnfv-goodies/snabbswitch,SnabbCo/snabbswitch,SnabbCo/snabbswitch,eugeneia/snabb,wingo/snabb,dpino/snabbswitch,SnabbCo/snabbswitch,eugeneia/snabb,heryii/snabb,kbara/snabb,lukego/snabbswitch,heryii/snabb,dpino/snabbswitch,lukego/snabbswitch,lukego/snabbswitch,alexandergall/snabbswitch,snabbco/snabb,snabbco/snabb,andywingo/snabbswitch,lukego/snabbswitch,heryii/snabb,wingo/snabbswitch,eugeneia/snabb,snabbco/snabb,wingo/snabbswitch,snabbco/snabb,Igalia/snabbswitch,snabbco/snabb,alexandergall/snabbswitch,wingo/snabbswitch,dpino/snabbswitch,snabbnfv-goodies/snabbswitch,kbara/snabb,xdel/snabbswitch,alexandergall/snabbswitch,fhanik/snabbswitch,Igalia/snabb,snabbco/snabb,dpino/snabb,xdel/snabbswitch,virtualopensystems/snabbswitch,kbara/snabb,plajjan/snabbswitch,aperezdc/snabbswitch,lukego/snabb,Igalia/snabb,eugeneia/snabb,snabbco/snabb,Igalia/snabb,andywingo/snabbswitch,Igalia/snabbswitch,dpino/snabb,eugeneia/snabb,heryii/snabb,Igalia/snabb