Linux kernel mirror (for testing)
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel
os
linux
1/* SPDX-License-Identifier: GPL-2.0-or-later */
2#ifdef CONFIG_MMU
3
4#ifdef CONFIG_INET
5extern const struct vm_operations_struct tcp_vm_ops;
6static inline bool vma_is_tcp(const struct vm_area_struct *vma)
7{
8 return vma->vm_ops == &tcp_vm_ops;
9}
10#else
11static inline bool vma_is_tcp(const struct vm_area_struct *vma)
12{
13 return false;
14}
15#endif /* CONFIG_INET*/
16
17#endif /* CONFIG_MMU */