test

xiaoxiao2021-02-28  94

Man page of test_and_set_bit(int nr, volatile void *addr)这样描述它的功能:

"Set a bit and return its old value"

 nr -- Bit to set

 addr -- Address to count from

注意:nr是需要设置的“哪一位”,而不是将addr的值设置成nr。

例如"test_and_set_bit(0, &var)","0" 不是要设置的值,而是表示var中第0位需要被设置为"1"。此函数返回相应比特位上一次被设置的值。 test_and_clear_bit()用法正好相反, which assigns "0" to the specified bit.

<script>window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"2","bdMiniList":false,"bdPic":"","bdStyle":"0","bdSize":"16"},"share":{}};with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)];</script> 阅读(252) | 评论(0) | 转发(0) | 0

上一篇:dwarf调试信息格式入门

下一篇:dwarf

相关热门文章 linux 常见服务端口xmanager 2.0 for linux配置【ROOTFS搭建】busybox的httpd...openwrt中luci学习笔记Linux里如何查找文件内容... 给主人留下些什么吧!~~ 评论热议
转载请注明原文地址: https://www.6miu.com/read-56946.html

最新回复(0)