• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /barrelfish-2018-10-04/lib/bulk_transfer/

Lines Matching refs:buffer

16  * checks if a given buffer is read only
18 * @param buffer the buffer to check the read only access
20 * @return true if the buffer is read only
23 static inline uint8_t bulk_buffer_is_read_only(struct bulk_buffer *buffer) {
24 return ((buffer->state == BULK_BUFFER_READ_ONLY)
25 || (buffer->state == BULK_BUFFER_RO_OWNED));
29 * checks if the given buffer copy can be released
31 * @param buffer the buffer to check the read only access
33 * @return true if the buffer copy can be released
36 static inline uint8_t bulk_buffer_can_release(struct bulk_buffer *buffer) {
37 return (buffer->local_ref_count == 0);
41 * checks if the supplied size is valid for a buffer that is:
51 * does the mapping of the buffer according to the base address, capability
52 * and offset specified in the buffer struct.
54 * @param buf the buffer to map
60 * does the unmapping of a single buffer according to the trust level,
66 * @param buf the buffer to unmap
72 * changes the state of the buffer
74 * @param buffer the buffer to change the state
75 * @param state new state to transition the buffer to
77 errval_t bulk_buffer_change_state(struct bulk_buffer *buffer,
81 * checks if the buffer is owned by the calling domain
83 * @param buffer buffer to check for ownership
89 * checks if the buffer is a read only copy
91 * @param buffer the buffer to check
93 * @return true if the buffer is a read only copy
94 * false if the buffer is not a copy
96 uint8_t bulk_buffer_is_copy(struct bulk_buffer *buffer);
100 * checks if the buffer is valid
102 * @param buffer the buffer to check
104 * @return true if the buffer is valid
105 * false if the buffer is not valid
107 uint8_t bulk_buffer_is_valid(struct bulk_buffer *buffer);
110 * Sets a cap + offset pair for a buffer.
112 * @param buffer the buffer
116 errval_t bulk_buffer_assign_cap(struct bulk_buffer *buffer,