Skip to content

Commit

Permalink
Remove the 'sys::flow' service
Browse files Browse the repository at this point in the history
  • Loading branch information
ClementNerma committed Oct 6, 2023
1 parent b2bd0b1 commit 1b262bb
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 21 deletions.
1 change: 0 additions & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ The list of default applications and their description can be found [here](appli
- [`sys::net`](specs/services/system/net.md) - the network service
- [`sys::crypto`](specs/services/system/crypto.md) - the cryptography service
- [`sys::crashsave`](specs/services/system/crashsave.md) - the [crash saves](features/crash-saves.md) service
- [`sys::flow`](specs/services/system/flow.md) - the [flows](specs/filesystem.md#flows) service
- [`sys::hydre`](specs/services/system/hydre.md) - the [shell (Hydre)](specs/shell.md) service
- [`sys::app`](specs/services/system/app.md) - the [applications](concepts/applications.md) management service
- [`sys::process`](specs/services/system/process.md) - the [processes](technical/processes.md) management service
Expand Down
1 change: 0 additions & 1 deletion docs/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@
- [`sys::net`](specs/services/system/net.md)
- [`sys::crypto`](specs/services/system/crypto.md)
- [`sys::crashsave`](specs/services/system/crashsave.md)
- [`sys::flow`](specs/services/system/flow.md)
- [`sys::hydre`](specs/services/system/hydre.md)
- [`sys::app`](specs/services/system/app.md)
- [`sys::process`](specs/services/system/process.md)
Expand Down
1 change: 0 additions & 1 deletion docs/specs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ For more informations about low-level concepts these documents refer to, you can
* [`sys::net`](services/system/net.md): network communications
* [`sys::crypto`](services/system/crypto.md): cryptography utilities
* [`sys::crashsave`](services/system/crashsave.md): [crash saves](../features/crash-saves.md) management
* [`sys::flow`](services/system/flow.md): [flows](filesystem.md#flows) management
* [`sys::hydre`](services/system/hydre.md): [Hydre](shell.md) shell service
* [`sys::ui`](services/system/ui.md): user interface service
* [`sys::app`](services/system/app.md): applications management service
Expand Down
6 changes: 3 additions & 3 deletions docs/specs/filesystem.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ When we will try to access `A`, the system will access `B`, then `A`, then `B`,

## Flows

_Flows_ are a simple and efficient way for processes (mostly [services](services.md)) to allow treating flows of data.
_Flows_ are a simple and efficient way for [shell scripts](./services/system/hydre.md) to allow manipulating asynchronous streams of data.

### Concept

Expand All @@ -114,15 +114,15 @@ Processes are based on [pipes](kernel/ipc.md).

When a process wants to create a flow, it follows the following procedure:

1. The process asks the [`sys::flow`](services/system/flow.md) service to create a flow
1. The process asks the [`sys::fs`](services/system/fs.md) service to create a flow
2. The service creates the related flow file in `/fl`
3. When a process reads from the (readable) flow file, all data is continuely retrieved from the creator's SC (until the flow is closed)
4. When a process writes to the (writable) flow file, all data is continuely written to the creator's RC (the flow is not closed after that though)
5. When the creator closes its SC/RC, the IPC channels duo is closed and the flow file is removed

### Connecting to a flow

When a process wants to read from or write to a file, it first asks the [`sys::flow`](services/system/flow.md) service to connect to this file. If accepted, it receives a [SC or RC](kernel/ipc.md#pipes) to interact with the flow.
When a process wants to read from or write to a file, it first asks the [`sys::fs`](services/system/fs.md) service to connect to this file. If accepted, it receives a [SC or RC](kernel/ipc.md#pipes) to interact with the flow.

## Structure

Expand Down
1 change: 0 additions & 1 deletion docs/specs/services/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ Conventional error codes use an increasing importance order ; checkings should a
* [`sys::net`](system/net.md): network communications
* [`sys::crypto`](system/crypto.md): cryptography utilities
* [`sys::crashsave`](system/crashsave.md): [crash saves](../../features/crash-saves.md) management
* [`sys::flow`](system/flow.md): [flows](..//filesystem.md#flows) management
* [`sys::hydre`](system/hydre.md): [Hydre](../shell.md) shell service
* [`sys::ui`](system/ui.md): user interface service
* [`sys::app`](system/app.md): applications management service
Expand Down
9 changes: 4 additions & 5 deletions docs/specs/services/system/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@ All methods return an answer, though it may be empty (indicated by a _None_). Sy
- PID 14: [`sys::net`](net.md): network communications
- PID 15: [`sys::crypto`](crypto.md): cryptography utilities
- PID 16: [`sys::crashsave`](crashsave.md): [crash saves](../../../features/crash-saves.md) management
- PID 17: [`sys::flow`](flow.md): [flows](../../../specs/filesystem.md#flows) management
- PID 18: [`sys::hydre`](hydre.md): [Hydre](../../shell.md) shell service
- PID 20: [`sys::ui`](ui.md): user interface service
- PID 21: [`sys::app`](app.md): applications management service
- PID 22: [`sys::process`](process.md): processes management service
- PID 17: [`sys::hydre`](hydre.md): [Hydre](../../shell.md) shell service
- PID 18: [`sys::ui`](ui.md): user interface service
- PID 19: [`sys::app`](app.md): applications management service
- PID 20: [`sys::process`](process.md): processes management service
9 changes: 0 additions & 9 deletions docs/specs/services/system/flow.md

This file was deleted.

0 comments on commit 1b262bb

Please sign in to comment.