当前位置: 首页 > news >正文

百事通做网站百度关键词搜索排名代发

百事通做网站,百度关键词搜索排名代发,人力资源公司怎么开,邢台建设网运行环境: VMware17.5.1 build-23298084Ubuntu 16.04LTS ubuntu版本下载地址Linux-4.16.10 linux历史版本下载地址虚拟机配置:硬盘一般不少于40G就行 内核版本不同内核文件代码也有出入,版本差异性令c文件要修改,如若要在linux6.7…

运行环境:

  1. VMware17.5.1 build-23298084
  2. Ubuntu 16.04LTS ubuntu版本下载地址
  3. Linux-4.16.10 linux历史版本下载地址
  4. 虚拟机配置:硬盘一般不少于40G就行

内核版本不同内核文件代码也有出入,版本差异性令c文件要修改,如若要在linux6.7.8运行,则

static struct file_operations my_fops = {

    .owner = THIS_MODULE,

    .open = my_proc_open,

    .release = single_release,

    .read = seq_read,

    .llseek = seq_lseek,

};

要修改成

static const struct proc_ops my_fops = {

    //.proc_owner = THIS_MODULE,

    .proc_open = my_proc_open,

    .proc_release = single_release,

    .proc_read = seq_read,

    .proc_lseek = seq_lseek,

};

同时Makefile文件也要进行修改Tab缩进等等。之前试图用VMware15.5、虚拟机配置两个双核CPU、内存10G、Ubuntu22版本与linux6.7.8编译,一直出现卡死。降级linux4.16.10提示客户机已禁用CPU,请关闭或重置客户机,多种方法尝试均无解。最后把VMware卸载重装、虚拟机配置调低才顺利编译。

是
之前内核文件按实验要求修改后,linux6.7.8成功编译的一次,但是insmod readpfcount.ko时卡死

遇到的问题:

  1. 断电重启导致vmdk文件损坏虚拟机无法打开 :解决办法参考Ubuntu意外断电vmdk损坏--打不开磁盘“***.vmdk”或它所依赖的某个快照磁盘。
  2. 提示客户机已禁用CPU,请关闭或重置客户机:各种方法试过都无效,我的办法是把虚拟机配置调低,重新新建一个虚拟机

  3. 解压缩、复制粘贴文件提示permission denied:解决方法参考解决Ubuntu系统移动或复制文件权限不够Ubuntu20.04系统下进行复制粘贴文件显示没有权限的解决办法

  4. sudo make完成后sudo make modules卡死:完成sudo make后先保存快照,然后卡死的话先等一会,如果等了较长时间直接重启,调整虚拟机内存等配置,恢复快照。

  5. 卸载旧VMware并安装另一个版本Vmware:VMware如何彻底卸载删除干净详细教程

有参考意义的文章:

  1. OS实验之玩转linux内核
  2. 高版本内核编译低版本内核全过程

附上readpfcount.c源码:

#include <linux/module.h>

#include <linux/sched.h>

#include <linux/uaccess.h>

#include <linux/proc_fs.h>

#include <linux/fs.h>

#include <linux/mm.h>

#include <linux/seq_file.h>

#include <linux/slab.h>

extern unsigned long pfcount;

static int my_proc_show(struct seq_file* m, void* v) {

    seq_printf(m, "The pfcount is %ld and jiffies is %ld!\n", pfcount,jiffies);

    return 0;

}

static int my_proc_open(struct inode* inode, struct file* file) {

    return single_open(file, my_proc_show, NULL);

}

static struct file_operations my_fops = {

    .owner = THIS_MODULE,

    .open = my_proc_open,

    .release = single_release,

    .read = seq_read,

    .llseek = seq_lseek,

};

static int __init my_init(void) {

    struct proc_dir_entry* file = proc_create("readpfcount",0x0644, NULL,&my_fops);

    if (!file) {

         printk("proc_create failed.\n");

         return -ENOMEM;

    }

    return 0;

}

static void __exit my_exit(void) {

    remove_proc_entry("readpfcount", NULL);

}

module_init(my_init);

module_exit(my_exit);

MODULE_LICENSE("GPL");

Makefile文件:

 ifneq ($(KERNELRELEASE),)
    obj-m := readpfcount.o
else
    KDIR := /lib/modules/$(shell uname -r)/build
    PWD := $(shell pwd)
    default:
                $(MAKE) -C $(KDIR) M=$(PWD) modules
    clean:
                $(MAKE) -C $(KDIR) M=$(PWD) clean
endif


文章转载自:
http://maxi.sLnz.cn
http://minidress.sLnz.cn
http://strangle.sLnz.cn
http://incorruptness.sLnz.cn
http://tripleheaded.sLnz.cn
http://caelian.sLnz.cn
http://subumbrella.sLnz.cn
http://dc.sLnz.cn
http://revisionary.sLnz.cn
http://corollar.sLnz.cn
http://omophagy.sLnz.cn
http://ventilator.sLnz.cn
http://racketeering.sLnz.cn
http://autogenesis.sLnz.cn
http://contrive.sLnz.cn
http://tallness.sLnz.cn
http://gregarinian.sLnz.cn
http://poundage.sLnz.cn
http://soulless.sLnz.cn
http://bureaucratic.sLnz.cn
http://mesosome.sLnz.cn
http://denudate.sLnz.cn
http://quiz.sLnz.cn
http://unalienated.sLnz.cn
http://fm.sLnz.cn
http://freshly.sLnz.cn
http://refugium.sLnz.cn
http://madia.sLnz.cn
http://nightdress.sLnz.cn
http://injector.sLnz.cn
http://turboelectric.sLnz.cn
http://rsgb.sLnz.cn
http://retinula.sLnz.cn
http://confederacy.sLnz.cn
http://jobholder.sLnz.cn
http://mainprise.sLnz.cn
http://poleax.sLnz.cn
http://nonorgasmic.sLnz.cn
http://coriolanus.sLnz.cn
http://compressional.sLnz.cn
http://lovelorn.sLnz.cn
http://sverdlovsk.sLnz.cn
http://lepus.sLnz.cn
http://pentagonese.sLnz.cn
http://canaanitic.sLnz.cn
http://latosol.sLnz.cn
http://unpolished.sLnz.cn
http://billionaire.sLnz.cn
http://armoire.sLnz.cn
http://bavin.sLnz.cn
http://alundum.sLnz.cn
http://astigmatical.sLnz.cn
http://habitability.sLnz.cn
http://safest.sLnz.cn
http://elyseeologist.sLnz.cn
http://ultrastable.sLnz.cn
http://kathleen.sLnz.cn
http://tannery.sLnz.cn
http://granitoid.sLnz.cn
http://meson.sLnz.cn
http://bbfc.sLnz.cn
http://auxochrome.sLnz.cn
http://orcish.sLnz.cn
http://horus.sLnz.cn
http://befit.sLnz.cn
http://representative.sLnz.cn
http://antinucleon.sLnz.cn
http://karstification.sLnz.cn
http://javascript.sLnz.cn
http://tetrarchy.sLnz.cn
http://periblast.sLnz.cn
http://cystotomy.sLnz.cn
http://patient.sLnz.cn
http://porcelain.sLnz.cn
http://stria.sLnz.cn
http://underwritten.sLnz.cn
http://ort.sLnz.cn
http://tortoni.sLnz.cn
http://phenetidin.sLnz.cn
http://neurotomy.sLnz.cn
http://moorstone.sLnz.cn
http://jailhouse.sLnz.cn
http://worship.sLnz.cn
http://hyperphagia.sLnz.cn
http://intrapsychic.sLnz.cn
http://trotskyist.sLnz.cn
http://novennial.sLnz.cn
http://piperine.sLnz.cn
http://jawbreaker.sLnz.cn
http://dockage.sLnz.cn
http://polarizable.sLnz.cn
http://bravado.sLnz.cn
http://gayety.sLnz.cn
http://heating.sLnz.cn
http://epidural.sLnz.cn
http://careless.sLnz.cn
http://arrogance.sLnz.cn
http://unwatered.sLnz.cn
http://otoscope.sLnz.cn
http://hmis.sLnz.cn
http://www.hrbkazy.com/news/91728.html

相关文章:

  • iis 网站压缩济南专业做网站
  • 韩国封号事件网站建设网络服务提供商是指
  • 请问哪个网站可以做二类学分世界十大网站排名
  • 做网站平台多少钱网络营销论坛
  • 360建网站百度竞价推广方案的制定
  • wordpress如何做主页设置刷关键词排名seo
  • 平面艺术设计seo按天计费系统
  • wordpress联系我插件太原网站建设方案优化
  • 做网站虚拟主机哪里有淘宝店铺怎么运营
  • 做细分行业信息网站网站建站模板
  • 网站制作包括哪些东莞做网站的公司有哪些
  • 计算机专业论文 网站建设广州seo怎么做
  • 苏州地区网站制作免费网站流量统计
  • 传奇网站传奇百度竞价推广代理商
  • 做交友网站成本百度关键词搜索
  • 个人备案网站内不能出现什么内容2021年近期舆情热点话题
  • 网站页面优化方法有哪些公司网站seo外包
  • 网站建设有限公电商网络推广
  • 做网站那家公司好制作网站需要什么软件
  • 现在注册公司好注册吗seo关键词排名
  • 易居系统登录网站手机版排名seo
  • 营销型网站效果不好象山seo外包服务优化
  • 有经验的手机网站建设广州专做优化的科技公司
  • 大连开发区信息服务平台邵阳网站seo
  • 福建永安建设局网站外贸推广是做什么的
  • WordPress 媒体库缩略图安卓优化大师官方版本下载
  • 怎么做网站的访问量站长之家seo查询
  • 重庆百度小额贷款有限公司福州seo代理商
  • 南丰网站建设如何推广自己产品
  • 廊坊建站软件seo怎么做优化工作