|
TacOS
0.2
|
#include <fs/procfs.h>#include <kdirent.h>#include <klibc/string.h>#include <klog.h>#include <kmalloc.h>#include <kprocess.h>#include <scheduler.h>#include <kerrno.h>#include <types.h>#include <vfs.h>#include <klibc/stdlib.h>#include <klibc/ctype.h>#include <memory.h>
Structures de données | |
| union | specific_extra_data_procfs_t |
| struct | extra_data_procfs_t |
| struct | procfs_file_function_t |
| struct | procfs_directory_function_t |
Macros | |
| #define | procfs_root_process_offset 1 |
| #define | procfs_cmd_line_offset procfs_root_process_offset + 1 |
| #define | procfs_state_offset procfs_cmd_line_offset + 1 |
| #define | procfs_ppid_offset procfs_state_offset + 1 |
| #define | procfs_fd_offset procfs_ppid_offset + 1 |
| #define | procfs_first_fd_offset procfs_fd_offset + 1 |
| #define | procfs_priority_offset procfs_first_fd_offset + FOPEN_MAX |
| #define | PROCFS_PROCESS_RANGE 60*1000; |
| #define | EOF (-1) |
Définitions de type | |
| typedef dentry_t *( | lookup_function_t )(struct _fs_instance_t *instance, struct _dentry_t *dentry, const char *name) |
| typedef int( | procfs_read_dir_function_t )(open_file_descriptor *ofd, char *entries, size_t size) |
|
typedef union specific_extra_data_procfs_t | specific_extra_data_procfs_t |
Fonctions | |
| void | procfs_init () |
| Initialisation du proc FS. Plus de détails... | |
Variables | |
| const size_t | nb_file_functions = sizeof(procfs_file_functions_list) / sizeof(procfs_file_functions_list[0]) |
Copyright (C) 2010-2014 TacOS developers.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details at http://www.gnu.org/copyleft/gpl.html
You should have received a copy of the GNU General Public License along with this program; if not, see http://www.gnu.org/licenses.
Proc FS.
| #define procfs_root_process_offset 1 |
Unique id policy : each process has a range of PROCFS_PPROCESS_RANGE possible values for inode ids The begining of the range is computed by pid * PROCFS_PPROCESS_RANGE Then for each process, the vars ofset are :
| void procfs_init | ( | ) |
Initialisation of the proc FS.

1.8.7