Changeset 611 for trunk/kernel/libk


Ignore:
Timestamp:
Jan 9, 2019, 3:02:51 PM (6 years ago)
Author:
alain
Message:

Introduce sigificant modifs in VFS to support the <ls> command,
and the . and .. directories entries.

Location:
trunk/kernel/libk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/kernel/libk/remote_mutex.c

    r581 r611  
    137137#if DEBUG_MUTEX
    138138thread_t * this = CURRENT_THREAD;
    139 if( (uint32_t)hal_get_cycles() > DEBUG_QUEUELOCK )
     139if( (uint32_t)hal_get_cycles() > DEBUG_MUTEX )
    140140printk("\n[DBG] %s : thread %x in %x process / mutex(%x,%x)\n",
    141141__FUNCTION__, this->trdid, this->process->pid, local_cxy, mutex_ptr );
  • trunk/kernel/libk/remote_mutex.h

    r581 r611  
    3838 * This user type is implemented as an unsigned long, but the value is not used by the
    3939 * kernel. ALMOS-MKH uses only the mutex virtual address as an identifier.
    40  * For each user mutex, ALMOS-MKH creates a kernel "remote_mutex_t" structure,
    41  * dynamically allocated in the reference cluster by the remote_mutex_create() function,
    42  * and destroyed by the remote_mutex_destroy() function, using RPC if the calling thread
     40 * For each user mutex, ALMOS-MKH creates a kernel "remote_mutex_t" structure, allocated
     41 * in the user process reference cluster by the remote_mutex_create() function, and
     42 * destroyed by the remote_mutex_destroy() function, using RPC if the calling thread
    4343 * is not running in the reference cluster.
    4444 *
  • trunk/kernel/libk/string.h

    r457 r611  
    4949/********************************************************************************************
    5050 * This function compares lexicographically the strind s1 and s2.
    51  * characters are considered unsigned.
     51 * Characters are considered unsigned.
    5252 * I does not compare characters after the first NUL character.
    5353 ********************************************************************************************
     
    6161/********************************************************************************************
    6262 * This function compares lexicographically the strind s1 and s2.
    63  * I does not compare than <n> characters and stops after the first NUL character.
     63 * I does not compare more than <n> characters and stops after the first NUL character.
    6464 ********************************************************************************************
    6565 * @ s1   : pointer on string.
  • trunk/kernel/libk/xhtab.h

    r610 r611  
    3232
    3333///////////////////////////////////////////////////////////////////////////////////////////
    34 // This file define a generic, embedded, remotely accessible hash table.
     34// This file define a generic, embedded, remotely accessible, hash table.
    3535//
    3636// It can be accessed by any thread, running in any cluster.
     
    3939// For this purpose the set of all registered items is split in several subsets.
    4040// Each subset is organised as an embedded double linked xlists.
    41 // - an item is uniquely identified by a <key>, that is a single uint32_t value.
    42 // - From the <key> value, the hash table uses an item type specific xhtab_index()
     41// - an item is uniquely identified by a <key>, that is a item specific pointer,
     42//   that can be a - for example - a char* defining the item "name".
     43// - From the <key> value, the hash table uses an item type specific index_from_key()
    4344//   function, to compute an <index> value, defining a subset of registered items.
    4445// - to discriminate between items that have the same <index>, the hash table makes
    45 //   an associative search on the key in subset.
     46//   an associative search on the key in subset, using the item type specific
     47//   item_match_key() function.
    4648// - Each registered item is a structure, that must contain an embedded xlist_entry,
    4749//   that is part of the xlist implementing the subset.
    4850//
    4951// For all registered items, a total order is defined by the increasing index values,
    50 // and for each index value, by the position in the partial xlist.
     52// and for each index value, by the position in the xlist implementing a subset.
    5153// This order is used by the two functions xhtab_get_first() and xhtab_get_next(), that
    5254// are used to scan all registered items. The two "current_index" and "current_xlist_xp"
Note: See TracChangeset for help on using the changeset viewer.