Subversion Repositories Kolibri OS

Rev

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

Rev 6588 Rev 6936
Line 314... Line 314...
314
 * Returns -EBUSY if no_wait is true and the buffer is busy.
314
 * Returns -EBUSY if no_wait is true and the buffer is busy.
315
 * Returns -ERESTARTSYS if interrupted by a signal.
315
 * Returns -ERESTARTSYS if interrupted by a signal.
316
 */
316
 */
317
extern int ttm_bo_wait(struct ttm_buffer_object *bo, bool lazy,
317
extern int ttm_bo_wait(struct ttm_buffer_object *bo, bool lazy,
318
		       bool interruptible, bool no_wait);
318
		       bool interruptible, bool no_wait);
319
 
-
 
320
/**
-
 
321
 * ttm_bo_mem_compat - Check if proposed placement is compatible with a bo
-
 
322
 *
-
 
323
 * @placement:  Return immediately if buffer is busy.
-
 
324
 * @mem:  The struct ttm_mem_reg indicating the region where the bo resides
-
 
325
 * @new_flags: Describes compatible placement found
-
 
326
 *
-
 
327
 * Returns true if the placement is compatible
-
 
328
 */
-
 
329
extern bool ttm_bo_mem_compat(struct ttm_placement *placement,
-
 
330
			      struct ttm_mem_reg *mem,
-
 
331
			      uint32_t *new_flags);
-
 
332
 
-
 
333
/**
319
/**
334
 * ttm_bo_validate
320
 * ttm_bo_validate
335
 *
321
 *
336
 * @bo: The buffer object.
322
 * @bo: The buffer object.
337
 * @placement: Proposed placement for the buffer object.
323
 * @placement: Proposed placement for the buffer object.
Line 395... Line 381...
395
 * and is usually called just immediately after the bo has been reserved to
381
 * and is usually called just immediately after the bo has been reserved to
396
 * avoid recursive reservation from lru lists.
382
 * avoid recursive reservation from lru lists.
397
 */
383
 */
398
extern int ttm_bo_del_from_lru(struct ttm_buffer_object *bo);
384
extern int ttm_bo_del_from_lru(struct ttm_buffer_object *bo);
Line -... Line 385...
-
 
385
 
-
 
386
/**
-
 
387
 * ttm_bo_move_to_lru_tail
-
 
388
 *
-
 
389
 * @bo: The buffer object.
-
 
390
 *
-
 
391
 * Move this BO to the tail of all lru lists used to lookup and reserve an
-
 
392
 * object. This function must be called with struct ttm_bo_global::lru_lock
-
 
393
 * held, and is used to make a BO less likely to be considered for eviction.
-
 
394
 */
Line 399... Line 395...
399
 
395
extern void ttm_bo_move_to_lru_tail(struct ttm_buffer_object *bo);
400
 
396
 
401
/**
397
/**
402
 * ttm_bo_lock_delayed_workqueue
398
 * ttm_bo_lock_delayed_workqueue