Skip to content

Commit

Permalink
Tools: update README
Browse files Browse the repository at this point in the history
  • Loading branch information
whl739 authored May 23, 2017
1 parent e4ae9a6 commit 91a931f
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions tools/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,25 @@ All other directories are useful tools ported from FreeBSD.
# ipc

This is a simple implemention using dpdk `rte_ring`.
`ff_ipc_msg_alloc` get msg structure from rte_mempool.
`ff_ipc_msg_free` put msg to rte_mempool.
`ff_ipc_send` enqueue msg to rte_ring.
`ff_ipc_recv` dequeue msg from rte_ring.
```
ff_ipc_msg_alloc: get msg structure from rte_mempool.
ff_ipc_msg_free: put msg to rte_mempool.
ff_ipc_send: enqueue msg to rte_ring.
ff_ipc_recv: dequeue msg from rte_ring.
```

Since F-Stack is multi-process architecture and every process has an independent stack, so we must communicate with every F-Stack process.

# sysctl
Usage:
`sysctl -p <f-stack proc_id> [-bdehiNnoqTtWx] [ -B <bufsize> ] [-f filename] name[=value] ...`
`sysctl -p <f-stack proc_id> [-bdehNnoqTtWx] [ -B <bufsize> ] -a`
```
sysctl -p <f-stack proc_id> [-bdehiNnoqTtWx] [ -B <bufsize> ] [-f filename] name[=value] ...
sysctl -p <f-stack proc_id> [-bdehNnoqTtWx] [ -B <bufsize> ] -a
```

-p Which F-Stack process to communicate with, default 0.
```
-p Which F-Stack process to communicate with, default 0.
```

Except this option, it is same with the original FreeBSD sysctl, see [Manual page](https://www.freebsd.org/cgi/man.cgi?sysctl).

Expand Down Expand Up @@ -117,4 +123,4 @@ TOPDIR?=${CURDIR}/../..
PROG=helloworld
include ${TOPDIR}/tools/prog.mk
```
```

0 comments on commit 91a931f

Please sign in to comment.