Lines Matching full:source
5 SOURCE=
18 echo "usage: gfp-translate [-h] [ --source DIRECTORY ] gfpmask"
25 --source)
26 SOURCE=$2
42 # Guess the kernel source directory if it's not set. Preference is in order of
45 if [ "$SOURCE" = "" ]; then
47 SOURCE=/usr/src/linux
50 SOURCE=`pwd`
54 # Confirm that a source directory exists
55 if [ ! -r "$SOURCE/Makefile" ]; then
56 die "Could not locate kernel source directory or it is invalid"
64 # Extract GFP flags from the kernel source
66 grep -q ___GFP $SOURCE/include/linux/gfp.h
68 grep "^#define ___GFP" $SOURCE/include/linux/gfp.h | sed -e 's/u$//' | grep -v GFP_BITS > $TMPFILE
70 …grep "^#define __GFP" $SOURCE/include/linux/gfp.h | sed -e 's/(__force gfp_t)//' | sed -e 's/u)/)/…
76 echo Source: $SOURCE