參考資訊:
https://github.com/torvalds/linux
例如:找尋vfs_getxattr()在所有Kernel版本的變動
$ cd $ git clone https://github.com/torvalds/linux $ cd linux $ git tag > /tmp/tag $ echo "" > /tmp/diff $ cat /tmp/tag | awk '{print "echo "$1" >> /tmp/diff && git reset --hard && git clean -f -d && git checkout "$1" && grep \" vfs_getxattr(\" include/linux -r >> /tmp/diff"}' | sh $ cat /tmp/diff | sort -n | uniq -c | grep vfs_ 82 include/linux/xattr.h:ssize_t vfs_getxattr(struct dentry *, char *, void *, size_t); 574 include/linux/xattr.h:ssize_t vfs_getxattr(struct dentry *, const char *, void *, size_t); 49 include/linux/xattr.h:ssize_t vfs_getxattr(struct mnt_idmap *, struct dentry *, const char *, 94 include/linux/xattr.h:ssize_t vfs_getxattr(struct user_namespace *, struct dentry *, const char *,
P.S. 在/tmp/diff檔案找尋變動的區間即可知道從哪個Kernel版號開始變動