KasperskyOS Community Edition 1.1
Contents
Contents
Creating an IPC channel to VFS
Let's examine a Client
program using file systems and Berkeley sockets. To handle its calls, we start one VFS process (named VfsFsnet
). Network calls and file calls will be sent to this process. This approach is utilized when there is no need to separate file data streams from network data streams.
To ensure correct interaction between the Client
and VfsFsnet
processes, the name of the IPC channel between them must be defined by the _VFS_CONNECTION_ID
macro declared in the vfs/defs.h
file.
Below is a fragment of an init description for connecting the Client
and VfsFsnet
processes.
init.yaml
- name: Client
connections:
- target: VfsFsnet
id: {var: _VFS_CONNECTION_ID, include: vfs/defs.h}
- name: VfsFsnet