PatchworkOS  dbbdc99
A non-POSIX operating system.
Loading...
Searching...
No Matches
group.c File Reference
#include <kernel/fs/dentry.h>
#include <kernel/fs/filesystem.h>
#include <kernel/fs/vfs.h>
#include <kernel/fs/vnode.h>
#include <kernel/log/log.h>
#include <kernel/proc/group.h>
#include <kernel/proc/process.h>
#include <kernel/sched/thread.h>
#include <errno.h>
#include <kernel/sync/lock.h>
#include <kernel/sync/rcu.h>
#include <stdlib.h>
Include dependency graph for group.c:

Go to the source code of this file.

Functions

static void group_free (group_t *group)
 
static group_tgroup_new (void)
 
uint64_t group_member_init (group_member_t *member, group_member_t *group)
 Initializes a group member.
 
void group_member_deinit (group_member_t *member)
 Deinitializes a group member.
 
group_tgroup_get (group_member_t *member)
 Retrieve the group of a group member.
 
void group_add (group_t *group, group_member_t *member)
 Joins a process to a specific group.
 
void group_remove (group_member_t *member)
 Removes a process from its group.
 
uint64_t group_send_note (group_member_t *member, const char *note)
 Sends a note to all processes in the group of the specified member.
 

Function Documentation

◆ group_free()

static void group_free ( group_t group)
static

Definition at line 15 of file group.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ group_new()

static group_t * group_new ( void  )
static

Definition at line 27 of file group.c.

Here is the call graph for this function:
Here is the caller graph for this function: