A system and method for managing memory resources in a system that allows
remote direct access of memory. An aspect of the invention provides for
automatically un-binding bound direct-access memory resources based on
information received in messages from a remote source. The information
may, for example, include a last-segment indicator to indicate that the
message segment is the last expected message segment for a message.
Another aspect of the invention provides for memory management of
directly-accessible sections of memory by assigning a flag to indicate
when the section of memory has special access restrictions, such as a set
number of allowable accesses. Yet another aspect of the invention
provides for a flag to represent when the access restrictions associated
with a particular section of memory have been met.