PatchworkOS  966e257
A non-POSIX operating system.
Loading...
Searching...
No Matches
group.h File Reference
#include <kernel/sync/lock.h>
#include <kernel/utils/map.h>
#include <sys/list.h>
#include <sys/proc.h>
Include dependency graph for group.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  group_entry_t
 Group entry structure. More...
 
struct  group_t
 Process group structure. More...
 

Typedefs

typedef struct process process_t
 
typedef struct group group_t
 

Functions

void group_entry_init (group_entry_t *entry)
 Initializes a group entry.
 
void group_entry_deinit (group_entry_t *entry)
 Deinitializes a group entry.
 
uint64_t group_add (gid_t gid, group_entry_t *entry)
 Adds a process to a group.
 
void group_remove (group_entry_t *entry)
 Removes a process from its group.
 
gid_t group_get_id (group_entry_t *entry)
 Gets the ID of the group of the specified entry.
 
uint64_t group_send_note (group_entry_t *entry, const char *note)
 Sends a note to all processes in the group of the specified entry.
 

Typedef Documentation

◆ process_t

typedef struct process process_t

Definition at line 9 of file group.h.

◆ group_t

typedef struct group group_t

Definition at line 11 of file group.h.