pwd - Why is iget() hidden in xv6 -
I am playing a bit with a modern implementation of Unix version 6.
My first hack, I wanted to implement the simple I have started applying it with the Not very demonstrative, but it will be fit for the first hack. My problem is though that to get me the So, this is my question, why is I think they were just practical. iget is used only by the Directory Heripulation routine. The Directory Heritable Routine is in FSC. For Getcwd implementation, it would be better if you followed the chdir syscall code. The path is you need to store it, possibly in a new area in proc architecture Of course, if the given path is relative, you should add it to the current stored path. getcwd syscall, but I am losing a bit for which I should use the intangible level.
structure file interface?
struct inode interface?
struct input manipulator, my intuitive idea
proc-> gt; cwd , then
readi () was to get its second entry (
.. ), to scan it again to scan my previous
inum , and so on until I hit not on the root.
inum from
struct inode to
fs.c: iget () Required
dirent I have noticed that the
iget () is in the stable
fs.c and is not declared in
defs.h , which makes me a bit upset, But why can not I find the reason.
iget () been deliberately hidden from the rest of the kernel?
Comments
Post a Comment