Subversion Repositories Kolibri OS

Rev

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

Rev 5270 Rev 6082
Line 113... Line 113...
113
 * @size: size of the buffer
113
 * @size: size of the buffer
114
 * @file: file pointer used for sharing buffers across, and for refcounting.
114
 * @file: file pointer used for sharing buffers across, and for refcounting.
115
 * @attachments: list of dma_buf_attachment that denotes all devices attached.
115
 * @attachments: list of dma_buf_attachment that denotes all devices attached.
116
 * @ops: dma_buf_ops associated with this buffer object.
116
 * @ops: dma_buf_ops associated with this buffer object.
117
 * @exp_name: name of the exporter; useful for debugging.
117
 * @exp_name: name of the exporter; useful for debugging.
-
 
118
 * @owner: pointer to exporter module; used for refcounting when exporter is a
-
 
119
 *         kernel module.
118
 * @list_node: node for dma_buf accounting and debugging.
120
 * @list_node: node for dma_buf accounting and debugging.
119
 * @priv: exporter specific private data for this buffer object.
121
 * @priv: exporter specific private data for this buffer object.
120
 * @resv: reservation object linked to this dma-buf
122
 * @resv: reservation object linked to this dma-buf
121
 */
123
 */
122
struct dma_buf {
124
struct dma_buf {
Line 168... Line 170...
168
struct dma_buf_attachment *dma_buf_attach(struct dma_buf *dmabuf,
170
struct dma_buf_attachment *dma_buf_attach(struct dma_buf *dmabuf,
169
							struct device *dev);
171
							struct device *dev);
170
void dma_buf_detach(struct dma_buf *dmabuf,
172
void dma_buf_detach(struct dma_buf *dmabuf,
171
				struct dma_buf_attachment *dmabuf_attach);
173
				struct dma_buf_attachment *dmabuf_attach);
Line 172... Line 174...
172
 
174
 
173
struct dma_buf *dma_buf_export_named(void *priv, const struct dma_buf_ops *ops,
-
 
174
			       size_t size, int flags, const char *,
-
 
175
			       struct reservation_object *);
-
 
176
 
-
 
177
#define dma_buf_export(priv, ops, size, flags, resv)	\
-
 
Line 178... Line 175...
178
	dma_buf_export_named(priv, ops, size, flags, KBUILD_MODNAME, resv)
175
struct dma_buf *dma_buf_export(const struct dma_buf_export_info *exp_info);
179
 
176
 
180
int dma_buf_fd(struct dma_buf *dmabuf, int flags);
177
int dma_buf_fd(struct dma_buf *dmabuf, int flags);