Timeline

2026-05-21

init


How can you find which kernel version introduced a particular API?

1
2
3
4
5
6
7
8
9
10
11
git clone https://github.com/torvalds/linux.git

# Example: using array_index_nospec
# Find its definition in include/linux/nospec.h
git blame include/linux/nospec.h

# Find the commit id
git show f3804203306e0

# List all tags containing this commit id
git tag --contains f3804203306e0