Session Module
Data Fields
session_file_node Struct Reference

This is the structure into the rb_tree that contains all the open files with their counter. More...

#include <session_module.h>

Data Fields

char key [MAX_PATH_SIZE]
 
struct rw_semaphore * rw_sem
 
atomic_t counter
 

Detailed Description

This is the structure into the rb_tree that contains all the open files with their counter.

Field Documentation

atomic_t counter

the field that stores an atomic value indicating how many times the file is opened with sessions.

char key[MAX_PATH_SIZE]

the key on which the search method will find the needed node, it's the absolute path of the file

struct rw_semaphore* rw_sem

the semaphore that protects the file during the read and the write into ioctl and flush operations.


The documentation for this struct was generated from the following file: