冷门Linux API 查找指北

Posted Justin-Yip

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了冷门Linux API 查找指北相关的知识,希望对你有一定的参考价值。

Content

入坑

很多在线API手册 的 外文网站,内建的search engine 使用的是Google DuckDuck之类 “不存在” 的search engine。如:
www.man7.org

利用可用的搜索引擎,客制化搜索

怎么搜索这个nlmsghdr 这个magic number呢 ? Let`s do it!

Linux 应用开发API
  1. 指定搜索网站 man7.org1
    在搜索框输入:site: man7.org nlmsghdr
    命令解释:site: 指定网站 man7.org , nlmsghdr : 指定想要搜索的字串
  2. 进入搜索Top3 界面,Ctrl + F 在当前页面检索 nlmsghdr
Linux 内核API
  1. 指定搜索网站: kernel.org 2
    在搜索框输入:site: kernel.org kmalloc
    命令解释:site 指定网站 kernel.org kmalloc 即想要搜索的字串
  2. 进入搜索Top3 界面,Ctrl + F 在当前页面检索 kmalloc
代码内离线查看API 3

使用man/info查看函数手册:

man epoll(Tab补全)man -k epoll

man -k sleep //查看包含sleep的手册
man -f sleep //查看名为sleep的手册(多个序号)
man -a sleep //查看所有名为sleep的帮助信息
man 1 sleep //查看序号1的sleep
man 3 sleep //查看序号2的sleep

//把man或info的信息存为文本文件:
man epoll | col -b > epoll.txt
info epoll -o epoll.txt -s  

  1. https://www.man7.org/linux/man-pages/index.html ↩︎

  2. https://www.kernel.org/doc/htmldocs/kernel-api/ ↩︎

  3. https://www.cnblogs.com/findumars/p/6653704.html ↩︎

以上是关于冷门Linux API 查找指北的主要内容,如果未能解决你的问题,请参考以下文章

冷门Linux API 查找指北

Ubuntu 入门操作指北

VMware Workstation 安装以及Linux虚拟机安装 指北

tar命令基本进阶使用指北

ActiveMq 使用指北 - 1

超级详细的git使用指北