Changeset 36ae561 in rtems


Ignore:
Timestamp:
Jun 4, 2013, 1:51:35 PM (6 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
1f3ce60
Parents:
a2854fd
git-author:
Sebastian Huber <sebastian.huber@…> (06/04/13 13:51:35)
git-committer:
Sebastian Huber <sebastian.huber@…> (06/05/13 15:19:34)
Message:

nfsclient: Add rpcSetXIDs()

Location:
cpukit/libfs/src/nfsclient/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libfs/src/nfsclient/src/librtemsNfs.h

    ra2854fd r36ae561  
    9999extern rtems_task_priority rpciodPriority;
    100100
     101/**
     102 * @brief Sets the XIDs of the RPC transaction hash table.
     103 *
     104 * The active RPC transactions are stored in a hash table.  Each table entry
     105 * contains the XID of its corresponding transaction.  The XID consists of two
     106 * parts.  The lower part is determined by the hash table index.  The upper
     107 * part is incremented in each send operation.
     108 *
     109 * This function sets the upper part of the XID in all hash table entries.
     110 * This can be used to ensure that the XIDs are not reused in a short interval
     111 * for example during a boot process or after resets.
     112 *
     113 * @param[in] xid The upper part is used to set the upper XID part of the hash
     114 * table entries.
     115 */
     116void
     117rpcSetXIDs(uint32_t xid);
     118
    101119/** Initialize the driver.
    102120 *
  • cpukit/libfs/src/nfsclient/src/rpcio.c

    ra2854fd r36ae561  
    933933}
    934934
     935void
     936rpcSetXIDs(uint32_t xid)
     937{
     938        uint32_t i;
     939
     940        xid &= ~XACT_HASH_MSK;
     941
     942        for (i = 0; i < XACT_HASHS; ++i) {
     943                xidUpper[i] = xid | i;
     944        }
     945}
     946
    935947int
    936948rpcUdpInit(void)
Note: See TracChangeset for help on using the changeset viewer.