MCPcopy Create free account
hub / github.com/Axosoft/nsfw / findNodeByInode

Method findNodeByInode

src/linux/InotifyTree.cpp:166–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

164}
165
166InotifyTree::InotifyNode * InotifyTree::findNodeByInode(ino_t inodeNumber) {
167 auto nodeIterator = inodes.find(inodeNumber);
168 if (nodeIterator == inodes.end()) {
169 return NULL;
170 }
171
172 return nodeIterator->second;
173}
174
175InotifyTree::InotifyNode * InotifyTree::findNodeByPath(const std::string path) {
176 struct stat file;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected