上一页 1 2 3 4 5 6 ··· 63 下一页

2024年3月4日

QNX-19—QNX Proc文件

摘要: 一、/proc/pid # ls /proc/12310 as cmdline ctl exefile mappings pmap vmstat 1. as 包含进程整个内存空间的地址空间。 2. cmdline 传递给进程的参数,以空字符分隔。 例如: # pidin -p 1130602 arg 阅读全文

posted @ 2024-03-04 13:47 Hello-World3 阅读(95) 评论(0) 推荐(0) 编辑

2024年2月28日

QNX-8—QNX常用命令—on

摘要: 注:翻译 http://www.qnx.com/developers/docs/7.1/index.html#com.qnx.doc.neutrino.utilities/topic/o/on.html 一、语法: on [-A ability-spec] [-ad | -ae] [-C cpunu 阅读全文

posted @ 2024-02-28 17:34 Hello-World3 阅读(159) 评论(0) 推荐(0) 编辑

2024年2月20日

Android命令-lshal

摘要: 一、lahal --help翻译 / # lshal --help lshal:列出并调试 HIDL HAL。(对于 AIDL HAL,请参阅“dumpsys”) commands: list 列出 HIDL HAL。 debug 调试指定的 HIDL HAL。 help 打印帮助消息。 wait 阅读全文

posted @ 2024-02-20 15:02 Hello-World3 阅读(105) 评论(0) 推荐(0) 编辑

2024年2月5日

service命令使用笔记

摘要: 一、简介 # service --help Usage: service [-h|-?] service list service check SERVICE service call SERVICE CODE [i32 N | i64 N | f N | d N | s16 STR | null 阅读全文

posted @ 2024-02-05 10:37 Hello-World3 阅读(10) 评论(0) 推荐(0) 编辑

2024年1月29日

C++对象内存模型

摘要: 一、概述 在编译时,编译器会对成员函数进行重构,让成员函数非成员化,编译器安排this指针作为成员函数的第一个参数,通过this指针可以找到对象的数据成员。 二、有虚函数单继承实验 1. 测试文件 #include <iostream> using namespace std; /* 类大小16B, 阅读全文

posted @ 2024-01-29 17:13 Hello-World3 阅读(28) 评论(0) 推荐(0) 编辑

2024年1月15日

Binder系列-1-Binder debug-2-宏值

摘要: 一、用户空间宏 1. 用户空间code相关宏 class IBinder : public virtual RefBase //binder/IBinder.h { public: enum { /* binder服务函数code从1开始 */ FIRST_CALL_TRANSACTION = 0x 阅读全文

posted @ 2024-01-15 17:15 Hello-World3 阅读(30) 评论(0) 推荐(0) 编辑

2024年1月13日

Binder系列-5-binder_mmap—1—mmap()分析

摘要: 一、man mmap 1. 函数声明 #include <sys/mman.h> void *mmap(void *addr, size_t length, int prot, int flags, int fd, off_t offset); int munmap(void *addr, size 阅读全文

posted @ 2024-01-13 16:29 Hello-World3 阅读(29) 评论(0) 推荐(0) 编辑

2023年12月29日

seq_file笔记—1—seq_file.txt 翻译

摘要: 1. seq_file 接口 版权所有 2003 Jonathan Corbet <corbet@lwn.net> 该文件最初来自 LWN.net 驱动程序移植系列,网址为:http://lwn.net/Articles/driver-porting/ 设备驱动程序(或其他内核组件)可以通过多种方式 阅读全文

posted @ 2023-12-29 18:00 Hello-World3 阅读(6) 评论(0) 推荐(0) 编辑

2023年12月27日

C++中动态库中全局变量

摘要: 一、疑问 1. C++程序中可以使用动态库中的全局变量吗?如果可以两个进程同时链接使用,全局变量的值会相互干扰吗(是否有2份)? 二、实验 1. 实验源文件 lib_file.cpp int g_lib_val = 10; int lib_add(int a, int b) { return a+b 阅读全文

posted @ 2023-12-27 21:00 Hello-World3 阅读(186) 评论(0) 推荐(0) 编辑

2023年12月22日

C++中的 mutable 关键字

摘要: Parcel 类中 mDataPos 被修饰为 mutable 类型变量。 C++ 中的 mutable 是一个关键字,用于修饰类的成员变量。mutable 关键字的作用是允许被修饰的成员变量在 const 修饰的成员函数中被修改,即使这些函数被声明为 const。 下面是 mutable 关键字的 阅读全文

posted @ 2023-12-22 17:35 Hello-World3 阅读(31) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 ··· 63 下一页

导航