mirror of
				https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
				synced 2025-10-31 16:38:31 +00:00 
			
		
		
		
	 3d2d827f5c
			
		
	
	
		3d2d827f5c
		
	
	
	
	
		
			
			Anyone who wants to do copy to/from user from a kernel thread, needs use_mm (like what fs/aio has). Move that into mm/, to make reusing and exporting easier down the line, and make aio use it. Next intended user, besides aio, will be vhost-net. Acked-by: Andrea Arcangeli <aarcange@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
		
			
				
	
	
		
			10 lines
		
	
	
		
			158 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			10 lines
		
	
	
		
			158 B
		
	
	
	
		
			C
		
	
	
	
	
	
| #ifndef _LINUX_MMU_CONTEXT_H
 | |
| #define _LINUX_MMU_CONTEXT_H
 | |
| 
 | |
| struct mm_struct;
 | |
| 
 | |
| void use_mm(struct mm_struct *mm);
 | |
| void unuse_mm(struct mm_struct *mm);
 | |
| 
 | |
| #endif
 |