Linux的API】的更多相关文章

(1)linux kernel API website: http://docs.knobbits.org/local/linux-doc/html/regulator/index.html http://www.cs.fsu.edu/~baker/devices/lxr/http/ident?i=regulator http://lxr.free-electrons.com/ident?v=3.13;i=regulator http://www.freebsd.org/cgi/man.cgi…
转自:https://www.linuxtv.org/downloads/legacy/video4linux/API/V4L2_API/spec-single/v4l2.html Video for Linux Two API Specification Revision 2.6.32 Michael H Schimek <mschimek@gmx.at> Bill Dirks Original author of the V4L2 API and documentation. Hans V…
转自:http://blog.csdn.net/jmq_0000/article/details/7536805#t136 Video for Linux Two API Specification Revision 0.24 Michael H Schimek <mschimek@gmx.at> Bill Dirks Hans Verkuil Martin Rubli Copyright © 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 20…
一般来说Linux上查看一些函数API的说明咱们可以man一下.man 2是syscall,man 3是一些库的函数API. 以下是man sections的一些说明 The table below shows the section numbers of the manual followed by the types of pages they contain. 1 Executable programs or shell commands 2 System calls (functions…
记录一些Linux Device Drivers中常用的API. Linux官方提供的内核文档: 1. 最新版: https://www.kernel.org/doc/html/latest/ 2. 4.10: https://www.kernel.org/doc/html/v4.10/ 3. Understanding the Linux Virtual Memory Manager 或者查看PDF版本 一.内存分配 1.    void *devm_kmalloc(struct device…
代码 这是一个带有UI界面的JAVA网络聊天程序,使用Socket连接完成通信. JAVA服务端程序 import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.io.PrintWriter; import java.net.ServerSocket; import java.net.Socket; import java.util.Scanner; /** *…
尝试着用Java编写一个网络聊天程序,发现总不如网上写的好,所以就直接引用了网上大神的优秀代码.代码如下: package project1; import java.awt.*; import java.awt.event.*; import java.io.*; import java.net.*; import java.util.ArrayList; import java.util.Iterator; import javax.swing.*; public class Server…
内核提供给驱动许多函数来声明, 注册, 以及去除内核定时器. 下列的引用展示了基本的 代码块: #include <linux/timer.h> struct timer_list { /* ... */ unsigned long expires; void (*function)(unsigned long); unsigned long data; }; void init_timer(struct timer_list *timer); struct timer_list TIMER_…
初始化临界区 (win) InitializeCriticalSection(RTL_CRITICAL_SECTION &rtl_critial_section) (linux) pthread_mutexattr_init(&(mutex)->attr); pthread_mutexattr_settype(&(mutex)->attr, PTHREAD_MUTEX_RECURSIVE); pthread_mutex_init(&(mutex)->mtx…
9/19/2017  开始攻读<LinuxC编程实战>,这是相关的笔记 1.创建 int creat(const char *filename, mode_t mode); 参数mode指定新建文件的存取权限,它与umask一起决定文件最终的存取权限(mode&umask),其中umask代表的是创建文件时需要去掉的文件存取权限,可通过系统调用下列函数改变umask的值: int umask(int newmask); 改调用通过将umask设置为newmask,然后返回旧的umask…