git: drm - Refactor task_struct and implement mm_struct

Francois Tigeot ftigeot at crater.dragonflybsd.org
Sat Aug 24 05:26:08 PDT 2019


commit 0e32b8c55fb2ed20206f2a71f5f7f8b3a2d1f40a
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Tue Aug 6 22:34:17 2019 -0700

    drm - Refactor task_struct and implement mm_struct
    
    * Change td->td_linux_task from an embedded structure to a pointer.
    
    * Add p->p_linux_mm to support tracking mm_struct's.
    
    * Change the 'current' macro to test td->td_linux_task and call
      a support function, linux_task_alloc(), if it is NULL.
    
    * Implement callbacks from the main kernel for thread exit and
      process exit to support functions that drop the td_linux_task and
      p_linux_mm pointers.
    
      Initialize and clear these callbacks in the module load/unload
      in drm_drv.c
    
    * Implement required support functions in linux_sched.c

Summary of changes:
 sys/conf/files                       |   1 +
 sys/dev/drm/drm/Makefile             |   1 +
 sys/dev/drm/drm_drv.c                |   6 ++
 sys/dev/drm/include/asm/current.h    |  17 ++++-
 sys/dev/drm/include/linux/mm_types.h |  11 +++
 sys/dev/drm/include/linux/sched.h    |   4 +-
 sys/dev/drm/linux_sched.c            | 132 +++++++++++++++++++++++++++++++++++
 sys/kern/kern_exit.c                 |   8 +++
 sys/sys/proc.h                       |   2 +-
 sys/sys/thread.h                     |  10 ++-
 10 files changed, 182 insertions(+), 10 deletions(-)
 create mode 100644 sys/dev/drm/linux_sched.c

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/0e32b8c55fb2ed20206f2a71f5f7f8b3a2d1f40a


-- 
DragonFly BSD source repository


More information about the Commits mailing list