易截截图软件、单文件、免安装、纯绿色、仅160KB

linux内核结构体

 -------------------------------------------------------------------------------------------------------
//By:yuyongbao
//QQ:673360056
LINUX 内核结构体
struct attribute
{
    const char    * name;
    struct module        * owner;
    mode_t        mode;
};
struct attribute_group
{
    const char    * name;
    struct attribute  ** attrs;
};
struct blocking_notifier_head
{
    struct rw_semaphore rwsem;
    struct notifier_block *head;
};
struct bus_attribute
{
    struct attribute  attr;
    ssize_t (*show)(struct bus_type *, char * buf);
    ssize_t (*store)(struct bus_type *, const char * buf, size_t count);
};
struct bus_type
{
    const char    * name;
    struct module     * owner;
 
    struct kset       subsys;
    struct kset       drivers;
    struct kset       devices;
    struct klist      klist_devices;
    struct klist      klist_drivers;
 
    struct blocking_notifier_head bus_notifier;
 
    struct bus_attribute * bus_attrs;
    struct device_attribute  * dev_attrs;
    struct driver_attribute  * drv_attrs;
    struct bus_attribute drivers_autoprobe_attr;
    struct bus_attribute drivers_probe_attr;
 
    int    (*match)(struct device * dev, struct device_driver * drv);
    int    (*uevent)(stru


相关文档:

Linux——NFS网络文件系统

NFS网络文件系统是通过文件系统实现资源共享的一种最重要的方式。
c/s 客户机   服务器
B/S 浏览器   服务器
NFS服务端配置:
编辑/etc/exports文件以配置开放路径。/home/share      192.168.0.123(ro)/(rw).
/etc/init.d/portmap  restart
/etc/init.d/nfs&nb ......

linux——挂载几类设备的用法

 Linux系统在使用光盘、软盘或U盘时,必须先执行挂载(mount)命令。挂载命令会将这些存储介质指定成系统中的某个目录,以后直接访问相应目录即可读写存储介质上的数据。
  
  1.挂载光盘
  
  挂载光盘的命令如下:
  
  # mount -t is09660 /dev/cdrom /mnt/cdrom
  
  该命令将光盘挂载到/ ......

Linux获取本机IP、MAC示例程序

#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <sys/ioctl.h>
#include <net/if.h>
#include <stdio.h>
#include <string>
#include <iostream>
#include <cstring>
using namespace std;
void peek_interfaces(int ......

s3c2410平台下linux四键按键驱动程序

#ifndef __KERNEL__
#define __KERNEL__
#endif
#ifndef MODULE
#define MODULE
#endif
#include<linux/config.h>
#include<linux/module.h>
#include<linux/version.h>
#include<linux/init.h>
#include<linux/kernel.h>
#include<linux/errno.h>
#include<linux/sche ......

从硬盘启动linux系统

 -------------------------------------------------------------------------------------------------------
//By:yuyongbao
//QQ:673360056
//平台powerpc mpc8379e linux 2.6.22
1、先用fdisk 给硬盘分一个区,用作文件系统。参照u-boot-ppc编译说明一文。
2、用mke2fs格式化硬盘的一个分区mke2fs /dev/sd ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号