6195f2b398
coccigrep is a semantic grep for the C language based on coccinelle. It can be used to find where a given structure is used in code files. coccigrep depends on the spatch program which comes with coccinelle. quick contrived example to find lines referencing m_len of a struct mbuf, regardless of actual variable name: $ coccigrep -t "struct mbuf" -a m_len /sys/netinet/ip_*.c |
||
---|---|---|
.. | ||
patches | ||
pkg | ||
distinfo | ||
Makefile |