搜索资源列表
LinuxUART
- linux 下串口编程 #include <stdio.h> /*标准输入输出定义*/ #include <stdlib.h> /*标准函数库定义*/ #include <unistd.h> /*Unix标准函数定义*/ #include <sys/types.h> /**/ #include <sys/stat.h> /**/ #include <fcntl.h> /*文件控制定义*/ #inc
capture.rar
- //结构 struct fb_fix_screeninfo finfo struct fb_var_screeninfo vinfo //打开设备 fd = open["/dev/fb0", O_RDWR] if [!fd] { printf["Cannot open framebuffer device.\n"] exit[1] } //取得固定信息 if [ioctl[fd, FBIOGET_FSCREENIN
fd
- Simulation of a 3D visualizer
change
- 使用系统调用pipe()建立一条管道,系统调用fork()分别创建两个子进程,它们分别向管道写一句话,如: Child process1 is sending a message! Child process2 is sending a message! 父进程分别从管道读出来自两个子进程的信息,显示在屏幕上。两个子进程并发执行。 实现管道的互斥使用。当一个子进程正在对管道进行写操作时,另一个欲写入管道的子进程必须等待。 使用系统调用lockf(fd[1],1,0)实
ProcessManagementchannel
- 使用系统调用pipe()建立一条管道,系统调用fork()分别创建两个子进程,它们分别向管道写一句话,如: Child process1 is sending a message! Child process2 is sending a message! 父进程分别从管道读出来自两个子进程的信息,显示在屏幕上。两个子进程并发执行。 实现管道的互斥使用。当一个子进程正在对管道进行写操作时,另一个欲写入管道的子进程必须等待。 使用系统调用lockf(fd[1],1,0)实现对管道
UICI
- 通用因特网IPV4网络编程接口 //TCP int uin_open_tcp(unsigned short port) int uin_accept(int fd, struct sockaddr_in *addr) int uin_connect(const char *cp, unsigned short port) int r_recv(int fd, void* buf, int size) int r_send(int fd, const void* m
epollexample
- epoll最大的好处在于它不会随着监听fd数目的增长而降低效率,epoll使用实例-epoll biggest advantage is that it does not increase with the number of listening fd reduced efficiency, epoll use cases
adb_client
- connect to adb, connect to the named service, and return a valid fd for interacting with that service upon success or a negative number on failure
fd-safer
- Return a safer copy of a file descr iptor.
get_console
- Get an fd for use with kbd/console ioctls Source Code for Linux.
IO-(2)
- *使用select函数可以以非阻塞的方式和多个socket通信。程序只是演示select函数的使用,即使某个连接关闭以后也不会修改当前连接数,连接数达到最大值后会终止程序。 1. 程序使用了一个数组fd,通信开始后把需要通信的多个socket描述符都放入此数组 2. 首先生成一个叫sock_fd的socket描述符,用于监听端口。 3. 将sock_fd和数组fd中不为0的描述符放入select将检查的集合fdsr。 4. 处理fdsr中可以接收数据的连接。如果是sock_fd,
trans_fd
- Fd transport layer. Includes deprecated socket layer.
fd
- New file layout: Now the ioctl definitions immediately follow the definitions of the structures that they use.
lproc_mdc
- This works for either broadcast or unicast to a single fd.
nouveau_abi16
- allocate device object targeting client s default device (ie. the one that belongs to the fd it opened). -allocate device object targeting client s default device (ie. the one that belongs to the fd it opened).
fdreg
- Fd controller regs. S&C, about page 340 for Linux v2.13.6.
evsel
- Per fd, to map back PERF_SAMPLE_ID to evsel, only used when there are more than one entry in the evlist. -Per fd, to map back PERF_SAMPLE_ID to evsel, only used when there are more than one entry in the evlist.
trans_fd
- Fd transport layer. Includes deprecated socket layer.
hubpi
- Object assumes ownership of fd.
ip_set_list
- FD of UDP socket to use.bitmask of debug message categories.