OK6410A 开发板 (八) 15 linux-5.11 OK6410A start_kernel 打印角度 第一阶段 vfs

  • 打印信息
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
Inode-cache hash table entries: 16384 (order: 4, 65536 bytes, linear)



[20:17:31]memblock_alloc_try_nid: 131072 bytes align=0x40 nid=-1 from=0x00000000 max_addr=0x00000000 alloc_large_system_hash+0x17c/0x2c0
[20:17:31]memblock_reserve: [0x5fdcc000-0x5fdebfff] memblock_alloc_range_nid+0xcc/0x150
[20:17:31]Dentry cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
[20:17:31]memblock_alloc_try_nid: 65536 bytes align=0x40 nid=-1 from=0x00000000 max_addr=0x00000000 alloc_large_system_hash+0x17c/0x2c0
[20:17:31]memblock_reserve: [0x5fdbc000-0x5fdcbfff] memblock_alloc_range_nid+0xcc/0x150
[20:17:31]Inode-cache hash table entries: 16384 (order: 4, 65536 bytes, linear)

vfs_caches_init_early
vfs_caches_init
start_kernel
    vfs_caches_init_early
        dcache_init_early();   // vfs 初始化 早期
        inode_init_early();    //vfs 初始化早期 Initialize the waitqueues and inode hash table.
	vfs_caches_init
	    names_cachep = kmem_cache_create("names_cache", PATH_MAX, 0, SLAB_HWCACHE_ALIGN|SLAB_PANIC, NULL); ///*为路径名申请的cache*/
        dcache_init();          //vfs 初始化 /*dentry及其相关内容初始化*/
        inode_init();           //vfs 初始化  /*inode初始化*/
        files_init();           //vfs 初始化  /*文件相关信息初始化,包括文件描述符表初始化*/
        files_maxfiles_init();  //vfs 初始化  
		mnt_init  /*mount 的初始化*/
			init_rootfs  							//注册 rootfs 文件系统
			init_mount_tree 						//加载rootfs文件系统,并将当前进程的当前目录和根目录设为rootfs的挂载点。
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值