摘要: 出来多年,但是很多一些基本的忘记了,也对,10多年了,一直不使用,真的是记不得了,还是怀念10多年前的考二级的时刻了。 今天看binder,一个红黑树跳出来了,靠,好熟悉,但是有点陌生了。 红黑树,为啥叫红黑树?网上说,就是节点有两种颜色,所以被称为红黑树。 红黑树又叫平衡二叉B树。 红黑树是每个结 阅读全文
posted @ 2021-09-23 11:57 zhougong12 阅读(195) 评论(0) 推荐(0)
摘要: 今天学习init,这个看了好几回,看了又忘掉,还是要写下来,最近发现写博客的支撑力是为了吹吹牛,我的天,堕落了。 学习init,不按照套路走,我就看到哪儿写到哪儿,来,先上Ini * Copyright (C) 2007 The Android Open Source Project 3 * 4 * 阅读全文
posted @ 2021-09-10 19:45 zhougong12 阅读(485) 评论(0) 推荐(0)
摘要: * Copyright (C) 2005 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this 阅读全文
posted @ 2021-09-09 14:33 zhougong12 阅读(248) 评论(0) 推荐(0)
摘要: * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to i 阅读全文
posted @ 2021-09-09 11:02 zhougong12 阅读(178) 评论(0) 推荐(0)
摘要: 1 /* 2 * Copyright (C) 2005 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not us 阅读全文
posted @ 2021-09-09 10:59 zhougong12 阅读(203) 评论(0) 推荐(0)
摘要: * Copyright (C) 2008 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this 阅读全文
posted @ 2021-09-09 10:50 zhougong12 阅读(76) 评论(0) 推荐(0)
摘要: IBinder.h - OpenGrok cross reference for /system/libhwbinder/include/hwbinder/IBinder.h (aospxref.com) 关于这个学习,我觉得贴贴代码就可以了 * Copyright (C) 2008 The And 阅读全文
posted @ 2021-09-09 09:38 zhougong12 阅读(244) 评论(0) 推荐(0)
摘要: 看了一堆博客,源代码分析的头头是道,但是我看空谈者较多,无非是代码里面转圈圈,我就一个问题,我的Binder找不到怎么办? 当然,查,我也不另外,代码还是要理一理。 唉,吐槽太多,但是还是要老老实实尊重前人经验来。 首先看看servicemanager,区分native层和java层 首先看看nat 阅读全文
posted @ 2021-09-01 15:45 zhougong12 阅读(1224) 评论(0) 推荐(0)
摘要: call_constructors这个函数是干啥的?简单了解一下 1 static void call_constructors(void) { 2 void **ctor;//我的天,上来一个指针的指针 3 4 ctor = &__ctor_list;//某个list的取址 5 while (ct 阅读全文
posted @ 2021-08-31 20:57 zhougong12 阅读(140) 评论(0) 推荐(0)
摘要: heap_init static inline void HEAP_INIT(void) { /* start the heap off with some spare memory in the page allocator */ size_t len; void *ptr = page_firs 阅读全文
posted @ 2021-08-31 18:13 zhougong12 阅读(124) 评论(0) 推荐(0)