Pengetahuan Kernel (6) – Struktur Data Linux (6) – file_struct

Struktur data files_struct mendeskripsikan file yang dibuka oleh suatu proses.

[sourcecode languange=”cpp”]
struct files_struct {
int count;
fd_set close_on_exec;
fd_set open_fds;
struct file * fd[NR_OPEN];
};
[/sourcecode]

fs_struct

[sourcecode languange=”cpp”]
struct fs_struct {
int count;
unsigned short umask;
struct inode * root, * pwd;
};
[/sourcecode]
Sumber : tldp.org

Be the first to comment

Leave a Reply

Your email address will not be published.


*