linux中min函数用法,mincore()函数 Unix/Linux

mincore -得到的页面是否在核心信息

内容简介

#include

#include

int mincore(void *start, size_tlength, unsigned char *vec);

描述

Themincore() function requests a vector describing which pages of a file are in core and can be read without disk access. The kernel will supply data forlengthbytes following thestartaddress. On return, the kernel will have filledvecwith bytes, of which the least significant bit indicates if a page is core resident. (The other bits are undefined, reserved for possible later use.) Of course this is only a snapshot: pages that are not locked in core can come and go any moment, and the contents ofvecmay be stale already when this call returns.

For mincore() to return successfully, start must lie on a page boundary. It is the caller’s responsibility to round up to the nearest page. The length parameter need not be a multiple of the page size. The vector vec must be large enough to cont

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值