![]() |
|
|||
0001 // SPDX-License-Identifier: GPL-2.0-only 0002 0003 #include <linux/uaccess.h> 0004 #include <linux/kernel.h> 0005 0006 bool copy_from_kernel_nofault_allowed(const void *unsafe_src, size_t size) 0007 { 0008 /* highest bit set means kernel space */ 0009 return (unsigned long)unsafe_src >> (BITS_PER_LONG - 1); 0010 }
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |