Subversion Repositories Kolibri OS

Rev

Rev 6082 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6082 Rev 6293
Line 152... Line 152...
152
	struct list_head node;
152
	struct list_head node;
153
	void *priv;
153
	void *priv;
154
};
154
};
Line 155... Line 155...
155
 
155
 
-
 
156
/**
-
 
157
 * struct dma_buf_export_info - holds information needed to export a dma_buf
-
 
158
 * @exp_name:	name of the exporter - useful for debugging.
-
 
159
 * @owner:	pointer to exporter module - used for refcounting kernel module
-
 
160
 * @ops:	Attach allocator-defined dma buf ops to the new buffer
-
 
161
 * @size:	Size of the buffer
-
 
162
 * @flags:	mode flags for the file
-
 
163
 * @resv:	reservation-object, NULL to allocate default one
-
 
164
 * @priv:	Attach private data of allocator to this buffer
-
 
165
 *
-
 
166
 * This structure holds the information required to export the buffer. Used
-
 
167
 * with dma_buf_export() only.
-
 
168
 */
-
 
169
struct dma_buf_export_info {
-
 
170
	const char *exp_name;
-
 
171
	struct module *owner;
-
 
172
	const struct dma_buf_ops *ops;
-
 
173
	size_t size;
-
 
174
	int flags;
-
 
175
	struct reservation_object *resv;
-
 
176
	void *priv;
-
 
177
};
-
 
178
 
-
 
179
/**
-
 
180
 * helper macro for exporters; zeros and fills in most common values
-
 
181
 */
-
 
182
#define DEFINE_DMA_BUF_EXPORT_INFO(a)	\
-
 
183
	struct dma_buf_export_info a = { .exp_name = KBUILD_MODNAME, \
-
 
184
					 .owner = THIS_MODULE }
-
 
185
 
156
/**
186
/**
157
 * get_dma_buf - convenience wrapper for get_file.
187
 * get_dma_buf - convenience wrapper for get_file.
158
 * @dmabuf:	[in]	pointer to dma_buf
188
 * @dmabuf:	[in]	pointer to dma_buf
159
 *
189
 *
160
 * Increments the reference count on the dma-buf, needed in case of drivers
190
 * Increments the reference count on the dma-buf, needed in case of drivers