<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[heyustudent的专栏]]></title><description><![CDATA[fight]]></description><link>https://blog.youkuaiyun.com/heyustudent</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; heyustudent]]></copyright><item><title><![CDATA[gcc：call to '__open_missing_mode' declared with attribute error]]></title><link>https://blog.youkuaiyun.com/heyustudent/article/details/45222097</link><guid>https://blog.youkuaiyun.com/heyustudent/article/details/45222097</guid><author>heyustudent</author><pubDate>Thu, 23 Apr 2015 15:15:33 +0800</pubDate><description><![CDATA[错误如下
gcc：call to '__open_missing_mode' declared with attribute error

网上找了下，下面是原文

 

这纯属软件bug，因为使用open函数的时候，如果在第二个参数中使用了 O_CREAT，就必须添加第三个参数：创建文件时赋予的初始权限。而在gcc-3.3.6～3.4.4/gcc/的collect2.c文件中有漏掉]]></description><category></category></item><item><title><![CDATA[bash操作大全]]></title><link>https://blog.youkuaiyun.com/heyustudent/article/details/42736837</link><guid>https://blog.youkuaiyun.com/heyustudent/article/details/42736837</guid><author>heyustudent</author><pubDate>Thu, 15 Jan 2015 09:18:54 +0800</pubDate><description><![CDATA[shell字符串的截取的问题：
一、Linux shell 截取字符变量的前8位，有方法如下：
1.expr substr “$a” 1 8
2.echo $a|awk ‘{print substr(,1,8)}’
3.echo $a|cut -c1-8
4.echo $
5.expr $a : ‘\(.\\).*’
6.echo $a|dd bs=1 count=8 2>/dev/]]></description><category></category></item><item><title><![CDATA[Linux /proc第一篇---->/proc/pid记录了什么]]></title><link>https://blog.youkuaiyun.com/heyustudent/article/details/42269311</link><guid>https://blog.youkuaiyun.com/heyustudent/article/details/42269311</guid><author>heyustudent</author><pubDate>Tue, 30 Dec 2014 17:52:35 +0800</pubDate><description><![CDATA[http://www.linuxidc.com/Linux/2012-09/70975.htm


由于自己Linux系统知识基础比较薄弱，准备比较全面学习，准备从/proc这个目录开始。实际上这个目录也基本上记录所有系统运行时和内核的一些信息，所以如果想对linux系统有一个比较全面的了解，从/proc入手应该是个不错的选择。准备将自己学习的过程记录下来，分享给同样需要的朋友，也便于以后查]]></description><category></category></item><item><title><![CDATA[undefined reference to `pthread_create']]></title><link>https://blog.youkuaiyun.com/heyustudent/article/details/41518781</link><guid>https://blog.youkuaiyun.com/heyustudent/article/details/41518781</guid><author>heyustudent</author><pubDate>Wed, 26 Nov 2014 17:20:25 +0800</pubDate><description><![CDATA[pthread 库不是 Linux 系统默认的库，连接时需要使用静态库 libpthread.a，在编译中加
 -lpthread参数和头文件#include]]></description><category></category></item><item><title><![CDATA[make: warning:  Clock skew detected.  Your build may be incomplete.]]></title><link>https://blog.youkuaiyun.com/heyustudent/article/details/41309345</link><guid>https://blog.youkuaiyun.com/heyustudent/article/details/41309345</guid><author>heyustudent</author><pubDate>Thu, 20 Nov 2014 10:46:24 +0800</pubDate><description><![CDATA[造成原因是make的时候，里面有些]]></description><category></category></item><item><title><![CDATA[cannot allocate an object of abstract type]]></title><link>https://blog.youkuaiyun.com/heyustudent/article/details/41083811</link><guid>https://blog.youkuaiyun.com/heyustudent/article/details/41083811</guid><author>heyustudent</author><pubDate>Thu, 13 Nov 2014 18:03:05 +0800</pubDate><description><![CDATA[创建了一个类的对象时报错了是Cannot
 allocate an object of abstract type
原因是]]></description><category></category></item><item><title><![CDATA[linux 学习]]></title><link>https://blog.youkuaiyun.com/heyustudent/article/details/40348779</link><guid>https://blog.youkuaiyun.com/heyustudent/article/details/40348779</guid><author>heyustudent</author><pubDate>Tue, 21 Oct 2014 17:56:26 +0800</pubDate><description><![CDATA[http://blog.youkuaiyun.com/geekcome/article/details/6400765]]></description><category></category></item><item><title><![CDATA[DLNA介绍(包括UPnP，2011/6/20 更新)]]></title><link>https://blog.youkuaiyun.com/heyustudent/article/details/40150669</link><guid>https://blog.youkuaiyun.com/heyustudent/article/details/40150669</guid><author>heyustudent</author><pubDate>Thu, 16 Oct 2014 16:36:56 +0800</pubDate><description><![CDATA[http://blog.youkuaiyun.com/musiccow/article/details/6387603

这部分的内容大多来源于网络及官方文档，按照自己的翻译理解整理所成。东西比较多，从头慢慢看还是可以懂个大概的。
 
目录：
一、DNLA的建立
二、DLNA的成员
三、DLNA标准的制定
四、DLNA的设备
五、DLNA的架构
六、云时代的数字家庭（待填坑）
 
扩展]]></description><category></category></item><item><title><![CDATA[一步步写STM32 OS【三】PendSV与堆栈操作]]></title><link>https://blog.youkuaiyun.com/heyustudent/article/details/39293501</link><guid>https://blog.youkuaiyun.com/heyustudent/article/details/39293501</guid><author>heyustudent</author><pubDate>Mon, 15 Sep 2014 15:33:10 +0800</pubDate><description><![CDATA[http://www.cnblogs.com/sky1991/p/stepbystep_stm32_os_3.html]]></description><category></category></item><item><title><![CDATA[contains invalid call from '~PRES8 (The user did n......]]></title><link>https://blog.youkuaiyun.com/heyustudent/article/details/39206155</link><guid>https://blog.youkuaiyun.com/heyustudent/article/details/39206155</guid><author>heyustudent</author><pubDate>Thu, 11 Sep 2014 14:54:06 +0800</pubDate><description><![CDATA[按照提示，可以将原来的代码作一些修改，主要是STMFD的寄存器个数改为偶数个，还要对代码段加上PRESERVE 8的限定。]]></description><category></category></item><item><title><![CDATA[Image uImage、zImage的区别]]></title><link>https://blog.youkuaiyun.com/heyustudent/article/details/39183521</link><guid>https://blog.youkuaiyun.com/heyustudent/article/details/39183521</guid><author>heyustudent</author><pubDate>Wed, 10 Sep 2014 17:12:29 +0800</pubDate><description><![CDATA[内核编译（make）之后会生成两个文件，一个Image，一个zImage，其中Image为内核映像文件，而zImage为内核的一种映像压缩文件，Image大约为4M，而zImage不到2M。

那么uImage又是什么的？它是uboot专用的映像文件，它是在zImage之前加上一个长度为64字节的“头”，说明这个内核的版本、加载位置、生成时间、大小等信息；其0x40之后与zImage没区别。]]></description><category></category></item><item><title><![CDATA[container_of 理解]]></title><link>https://blog.youkuaiyun.com/heyustudent/article/details/39183201</link><guid>https://blog.youkuaiyun.com/heyustudent/article/details/39183201</guid><author>heyustudent</author><pubDate>Wed, 10 Sep 2014 16:50:34 +0800</pubDate><description><![CDATA[http://blog.youkuaiyun.com/yinkaizhong/article/details/4093795

问题：如何通过结构中的某个变量获取结构本身的指针？？？

关于container_of见kernel.h中:
/**
* container_of - cast a member of a structure out to the containing structure]]></description><category></category></item><item><title><![CDATA[命名空间]]></title><link>https://blog.youkuaiyun.com/heyustudent/article/details/39182705</link><guid>https://blog.youkuaiyun.com/heyustudent/article/details/39182705</guid><author>heyustudent</author><pubDate>Wed, 10 Sep 2014 16:23:52 +0800</pubDate><description><![CDATA[2.3.2　命名空间（1）

命名空间提供了虚拟化的一种轻量级形式，使得我们可以从不同的方面来查看运行系统的全局属性。该机制类似于Solaris中的zone或 FreeBSD中的jail。对该概念做一般概述之后，我将讨论命名空间框架所提供的基础设施。

1. 概念

传统上，在Linux以及其他衍生的UNIX变体中，许多资源是全局管理的。例如，系统中的所有进程按照惯例是通过PID标识的]]></description><category></category></item><item><title><![CDATA[LINUX设备驱动之设备模型一--kobject]]></title><link>https://blog.youkuaiyun.com/heyustudent/article/details/39178149</link><guid>https://blog.youkuaiyun.com/heyustudent/article/details/39178149</guid><author>heyustudent</author><pubDate>Wed, 10 Sep 2014 10:30:07 +0800</pubDate><description><![CDATA[本站分析linux内核源码，版本号为2.6.xx.x
在建立linxu设备模型中kobject是一个重要的而且基础的数据结构,如果向内核注册一个kobject就相当于在sysfs文件系统下建立一个目录 .kobject又被嵌入到一个更大结构kset当中 ,在设备模型中 总线,设备,驱动就是典型的ket模型.
下面引用ULK3中的一张图来看看:




这个图很清晰的给我们展示了一个驱]]></description><category></category></item><item><title><![CDATA[IO端口和IO内存]]></title><link>https://blog.youkuaiyun.com/heyustudent/article/details/39158727</link><guid>https://blog.youkuaiyun.com/heyustudent/article/details/39158727</guid><author>heyustudent</author><pubDate>Tue, 09 Sep 2014 17:38:44 +0800</pubDate><description><![CDATA[驱动程序编写过程中，很少会注意到IO Port和IO Mem的区别。虽然使用一些不符合规范的代码可以达到最终目的，这是极其不推荐使用的。

结合下图，我们彻底讲述IO端口和IO内存以及内存之间的关系。主存16M字节的SDRAM，外设是个视频采集卡，上面有16M字节的SDRAM作为缓冲区。





1.      CPU是i386架构的情况在i386系列的处理中，内存和外部IO是独]]></description><category></category></item><item><title><![CDATA[Udev、Mdev学习总结]]></title><link>https://blog.youkuaiyun.com/heyustudent/article/details/39156333</link><guid>https://blog.youkuaiyun.com/heyustudent/article/details/39156333</guid><author>heyustudent</author><pubDate>Tue, 09 Sep 2014 15:06:23 +0800</pubDate><description><![CDATA[http://blog.youkuaiyun.com/yongan1006/article/details/6675642


Udev介绍

Udev的下载网址：http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev/

Udev分为三个子计划：namedev,libsysfs和udev。Namedev为设备命名子系统，libsysf]]></description><category></category></item><item><title><![CDATA[使用BusyBox制作linux根文件系统（CramFS+mdev）]]></title><link>https://blog.youkuaiyun.com/heyustudent/article/details/39155883</link><guid>https://blog.youkuaiyun.com/heyustudent/article/details/39155883</guid><author>heyustudent</author><pubDate>Tue, 09 Sep 2014 14:31:55 +0800</pubDate><description><![CDATA[http://blog.chinaunix.net/uid-23089249-id-34501.html



分类： 嵌入式




操作系统：Ubuntu9.04
内核版本：linux-2.6.24.7  
开发板：博创arm2410s    
交叉编译工具：arm-linux-gcc-4.1.1 
BusyBox：busybox-1.11.1      
Cram]]></description><category></category></item><item><title><![CDATA[大端与小端存储模式详解]]></title><link>https://blog.youkuaiyun.com/heyustudent/article/details/39155789</link><guid>https://blog.youkuaiyun.com/heyustudent/article/details/39155789</guid><author>heyustudent</author><pubDate>Tue, 09 Sep 2014 14:26:44 +0800</pubDate><description><![CDATA[http://blog.youkuaiyun.com/favory/article/details/4441361


端模式（Endian）的这个词出自Jonathan Swift书写的《格列佛游记》。这本书根据将鸡蛋敲开的方法不同将所有的人分为两类，从圆头开始将鸡蛋敲开的人被归为Big Endian，从尖头开始将鸡蛋敲开的人被归为Littile Endian（这句话最为形象）。小人国的内战就源于吃鸡]]></description><category></category></item><item><title><![CDATA[i2c]]></title><link>https://blog.youkuaiyun.com/heyustudent/article/details/39050393</link><guid>https://blog.youkuaiyun.com/heyustudent/article/details/39050393</guid><author>heyustudent</author><pubDate>Thu, 04 Sep 2014 11:49:32 +0800</pubDate><description><![CDATA[一、协议 


1.空闲状态 


　I2C总线总线的SDA和SCL两条信号线同时处于高电平时，规定为总线的空闲状态。此时各个器件的输出级场效应管均处在截止状态，即释放总线，由两条信号线各自的上拉电阻把电平拉高。 


2.起始位与停止位的定义： 



起始信号：当SCL为高期间，SDA由高到低的跳变；启动信号是一种电平跳变时序信号，而不是一个电平信号。停止信号：当SCL为高期间，SDA由低]]></description><category></category></item><item><title><![CDATA[ARM 一些特殊符号]]></title><link>https://blog.youkuaiyun.com/heyustudent/article/details/39024573</link><guid>https://blog.youkuaiyun.com/heyustudent/article/details/39024573</guid><author>heyustudent</author><pubDate>Wed, 03 Sep 2014 10:56:41 +0800</pubDate><description><![CDATA[特殊符号对应指令含义 

 

特殊符号  对应指令    含义


  =           DCB              分配一片连续的字节存储单元并用指定的数据初始化


  &          DCD              分配一片连续的字存储单元并用指定的数据初始化


  %          SPACE          分配一片连续的存储单元]]></description><category></category></item></channel></rss>