system/drivers/fatfs/node.c
/*
 * ObtainNode();
 *
 * HAven't a clue, assume searches incore list for a given node based on
 * cluster and offset.  Then copies dirent to the node if the node is new.
 * Strange.
 */


HAven't a clue, assume searches incore list for a given node based on
cluster and offset.  Then copies dirent to the node if the node is new.
Strange.
HAven ' t a clue assume searches incore list for a given node based on cluster and offset . Then copies dirent to the node if the node is new . Strange .
struct FatNode *FindNode(ino_t inode_nr) {
  struct FatNode *node;
  node = LIST_HEAD(&fsb.node_list);
  while (node != NULL) {
    if (node->inode_nr == inode_nr) {
      node->reference_cnt++;
      break;
    }
    node = LIST_NEXT(node, node_entry);
  }
  if (node == NULL) {
    KLog ("fat: findnode failed");
  }
  return node;
}
struct FatNode * FindNode ( ino_t inode_nr ) { struct FatNode * node ; node = LIST_HEAD ( & fsb . node_list ) ; while ( node != NULL ) { if ( node -> inode_nr == inode_nr ) { node -> reference_cnt ++ ; break ; } node = LIST_NEXT ( node , node_entry ) ; } if ( node == NULL ) { KLog ( " " ) ; } return node ; }
ObtainNode();
ObtainNode () ;