![]() |
|
|||
0001 #!/bin/sh 0002 # SPDX-License-Identifier: LGPL-2.1 0003 0004 if [ $# -ne 1 ] ; then 0005 linux_header_dir=tools/include/uapi/linux 0006 else 0007 linux_header_dir=$1 0008 fi 0009 0010 linux_fs=${linux_header_dir}/fs.h 0011 0012 printf "static const char *sync_file_range_flags[] = {\n" 0013 regex='^[[:space:]]*#[[:space:]]*define[[:space:]]+SYNC_FILE_RANGE_([[:alnum:]_]+)[[:space:]]+([[:xdigit:]]+)[[:space:]]*.*' 0014 egrep $regex ${linux_fs} | \ 0015 sed -r "s/$regex/\2 \1/g" | \ 0016 xargs printf "\t[ilog2(%s) + 1] = \"%s\",\n" 0017 printf "};\n"
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |