会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
孤独的程序员dis1500
知识就是希望
2021年1月10日
GPON设备 烽火国际
摘要: GPON设备 烽火国际 http://www.fiberhome.com/operator/contact/Default.aspx
阅读全文
posted @ 2021-01-10 05:03 lydstory
阅读(41)
评论(0)
推荐(0)
驱动内核:kfree_skb
摘要: kfree_skb()释放一个SKB的步骤: 1)kfree_skb()检测sk_buff结构的引用计数users,如果不为1,则说明此次释放后该SKB还将被用户占用, 因此递减引用计数users后即返回;否则说明不再有其他用户占用该sk_buff结构,调用__kfree_skb()释放之。 2)S
阅读全文
posted @ 2021-01-10 02:06 lydstory
阅读(777)
评论(0)
推荐(0)
syslog在那看
摘要: #include <stdio.h> #include <string.h> #include <syslog.h> #define SYSLOG(arg...) syslog(LOG_ERR,##arg) int main() { SYSLOG(" websafe backup start!");
阅读全文
posted @ 2021-01-10 01:53 lydstory
阅读(81)
评论(0)
推荐(0)
tty_struct 头文件
摘要: tty_struct 头文件
阅读全文
posted @ 2021-01-10 01:26 lydstory
阅读(113)
评论(0)
推荐(0)
驱动内核:kmalloc
摘要: #include <stdio.h> #include <string.h> #include <linux/kernel.h> #define sec_kmalloc(__size__) kmalloc((__size__), GFP_ATOMIC) int main() { printf("he
阅读全文
posted @ 2021-01-10 01:11 lydstory
阅读(75)
评论(0)
推荐(0)
c语言基础:char写入一个文件
摘要: #include <stdio.h> #include <string.h> int write_change_policy(const char* filename,char* buf_policy) { FILE *fp = NULL; fp = fopen(filename,"w+"); if
阅读全文
posted @ 2021-01-10 00:56 lydstory
阅读(460)
评论(0)
推荐(0)
system可以执行(popen无法执行)
摘要: #include <stdio.h> #include <string.h> #define BUF_SIZE 1024 #define MAX_NAME_SIZE 1024 int running_command(const char *command,char *result) { FILE *
阅读全文
posted @ 2021-01-10 00:53 lydstory
阅读(298)
评论(0)
推荐(0)
c语言基础:linux运行popen命令返回结果
摘要: #include <stdio.h> #include <string.h> #define BUF_SIZE 1024 #define MAX_NAME_SIZE 1024 int running_command(const char *command,char *result) { FILE *
阅读全文
posted @ 2021-01-10 00:46 lydstory
阅读(680)
评论(0)
推荐(0)
c语言基础:判断系统多少位
摘要: int get_sys_type(char *dst) { void *ptr = NULL; if (sizeof(ptr) == 4) sprintf(dst,"32"); else sprintf(dst,"64"); return 0; } int main() { char paht[25
阅读全文
posted @ 2021-01-10 00:43 lydstory
阅读(261)
评论(0)
推荐(0)
c语言基础:cutstring
摘要: #include <memory.h> //从文件件路径中获取文件名 void GetFileName(char *path,char *filename) { char *ptr = NULL; ptr = strrchr(path,'/'); if (!ptr) return; memcpy(f
阅读全文
posted @ 2021-01-10 00:31 lydstory
阅读(192)
评论(0)
推荐(0)
c语言基础:路径中获取文件名
摘要: #include <memory.h> //从文件件路径中获取文件名 void GetFileName(char *path,char *filename) { char *ptr = NULL; ptr = strrchr(path,'/'); if (!ptr) return; memcpy(f
阅读全文
posted @ 2021-01-10 00:19 lydstory
阅读(3841)
评论(0)
推荐(0)
导航
博客园
首页
新随笔
联系
订阅
管理
公告