2021年1月10日

摘要: GPON设备 烽火国际 http://www.fiberhome.com/operator/contact/Default.aspx 阅读全文
posted @ 2021-01-10 05:03 lydstory 阅读(41) 评论(0) 推荐(0)
摘要: 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)
摘要: #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 头文件 阅读全文
posted @ 2021-01-10 01:26 lydstory 阅读(113) 评论(0) 推荐(0)
摘要: #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)
摘要: #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)
摘要: #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)
摘要: #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)
摘要: 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)
摘要: #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)
摘要: #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)

导航