码迷,mamicode.com
首页 >  
搜索关键字:kernel kill init    ( 35249个结果
socket调用流程的函数及数据结构
如有错误,欢迎指正。如果需要,可以提供visio原文件。参考:1. 《追踪Linux TCPIP代码运行--基于2.6内核》2. Linux Kernel 2.6.26
分类:其他好文   时间:2014-07-18 23:38:53    阅读次数:313
Linux实现字符设备驱动的基础步骤
Linux应用层想要操作kernel层的API,比如想操作相关GPIO或寄存器,可以通过写一个字符设备驱动来实现。 1、先在rootfs中的 /dev/ 下生成一个字符设备。注意主设备号 和 从设备号。可用如下shell脚本生成: if [ ! -e audioIN ];then sudo mknod audioIN c 240 0 fi 生成的设备为 /d...
分类:系统相关   时间:2014-07-18 22:36:04    阅读次数:349
STL 源码剖析 stl_numeric.h
描述、源码、示例 version 1:普通操作版本 version 2: 泛化操作版本 1.accumulate 描述:计算 init 和 [first, last) 内所有元素的总和 源码: //version 1 template T accumulate(InputIterator first, InputIterator last, T init) { for ( ; first != last; ++first) ini...
分类:其他好文   时间:2014-07-18 22:16:32    阅读次数:283
The behavior of App killed or restored by Android System or by users
>>Kill the app by swiping out the screen The RC process is killed and activity stack is cleared. And thesystem will relaunch the rc process automatically.  When user launch theapp, it will show the l...
分类:移动开发   时间:2014-07-18 21:30:13    阅读次数:354
linuxc_线程锁pthread_mutes_t
在线程实际运行过程中,我们经常需要多个线程保持同步。这时可以用互斥锁来完成任务;互斥锁的使用过程中,主要有pthread_mutex_init,pthread_mutex_destory,pthread_mutex_lock,pthread_mutex_unlock这几个函数以完成锁的初始化,锁的销毁,上锁和释放锁操作。 一,锁的创建     锁可以被动态或静态创建,可以用宏PTHRE...
分类:编程语言   时间:2014-07-17 16:38:59    阅读次数:303
[每天一个Linux小技巧] 强制让内核按单核模式启动
在启动参数里追加 nosmp nosmp的说明如下: nosmp [SMP] Tells an SMP kernel to act as a UP kernel, and disable the IO APIC.  legacy for "maxcpus=0"....
分类:系统相关   时间:2014-07-17 16:05:17    阅读次数:346
view xml 中的 button 调用web客户端事件
最近写一个模块 需要 在客户端干点事. 按常规的方法, 应该是写个 客户端模块. 在 客户端 init, start, render 去渲染个按钮出来干事.暂时还不太理解WEB模块如何很好地同服务器端通讯. 所以, 还是使用传统的OE server 模块来干这事. OE 提供 ir.actions....
分类:Web程序   时间:2014-07-17 12:59:41    阅读次数:230
mysql 远程连接可以,本地连接报错
使用python的MySQLdb库连接本地的mysql数据库,报错如下: File "/usr/lib/python2.7/dist-packages/MySQLdb/__init__.py", line 81, in Connect     return Connection(*args, **kwargs)   File "/usr/lib/python2.7/dist-pack...
分类:数据库   时间:2014-07-17 10:15:49    阅读次数:255
python 守护进程
daemon进程守护进程1.fork子进程,而后父进程退出,此时子进程会被init进程接管2.修改子进程的工作目录,创建新进程组和新会话,修改umask3.子进程再次fork一个进程,这个进程可以称为孙子进程,而后子进程退出4.重定向孙子进程标准输入流,标准输出等atexit程序退出调用某个函..
分类:编程语言   时间:2014-07-17 09:15:42    阅读次数:272
lab-bill-sys-killservers-davidey
#!/bin/shservices="bluetoothcupsfirstbootgpmhiddhplipip6tablesisdnpcscdxfsxinetdyum-updatesdmessagebusabrtdabrt-oopsabrt-ccppavahi-daemonrhsmcertd"forservicein$servicesdoif[-f"/etc/init.d/$service"]thenif[$service==‘xinetd‘]thengrep-rdisable/etc/xinetd.*|se..
分类:其他好文   时间:2014-07-17 09:13:37    阅读次数:197
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!