摘要: task_struct英文源码原文 以下是中文以及解释:(未完待续,慢慢敲) 1. /* Used in tsk->state: */ #define TASK_RUNNING 0x0000//进程要么正在执行,要么准备执行,内核中有一个队列,里面都是等待执行的进程。 #define TASK_IN 阅读全文
posted @ 2019-12-14 19:34 Smah 阅读(1035) 评论(0) 推荐(1) 编辑
摘要: // SPDX-License-Identifier: GPL-2.0-only /* * Copyright (C) 2007 IBM Corporation * * Author: Cedric Le Goater <clg@fr.ibm.com> */ #include <linux/nspr 阅读全文
posted @ 2019-12-14 19:30 Smah 阅读(220) 评论(0) 推荐(0) 编辑
摘要: // SPDX-License-Identifier: GPL-2.0-only /* * Copyright (C) 2007 * * Author: Eric Biederman <ebiederm@xmision.com> */ #include <linux/module.h> #inclu 阅读全文
posted @ 2019-12-14 19:29 Smah 阅读(397) 评论(0) 推荐(0) 编辑
摘要: /* SPDX-License-Identifier: GPL-2.0 */ /* * linux/ipc/util.h * Copyright (C) 1999 Christoph Rohland * * ipc helper functions (c) 1999 Manfred Spraul < 阅读全文
posted @ 2019-12-14 19:28 Smah 阅读(334) 评论(0) 推荐(0) 编辑
摘要: // SPDX-License-Identifier: GPL-2.0 /* * linux/ipc/util.c * Copyright (C) 1992 Krishna Balasubramanian * * Sep 1997 - Call suser() last after "normal" 阅读全文
posted @ 2019-12-14 19:27 Smah 阅读(287) 评论(0) 推荐(0) 编辑
摘要: // SPDX-License-Identifier: GPL-2.0 /* * sys_ipc() is the old de-multiplexer for the SysV IPC calls. * * This is really horribly ugly, and new archite 阅读全文
posted @ 2019-12-14 19:26 Smah 阅读(577) 评论(1) 推荐(0) 编辑
摘要: // SPDX-License-Identifier: GPL-2.0 /* * linux/ipc/shm.c * Copyright (C) 1992, 1993 Krishna Balasubramanian * Many improvements/fixes by Bruno Haible. 阅读全文
posted @ 2019-12-14 19:24 Smah 阅读(740) 评论(0) 推荐(0) 编辑
摘要: // SPDX-License-Identifier: GPL-2.0 /* * linux/ipc/sem.c * Copyright (C) 1992 Krishna Balasubramanian * Copyright (C) 1995 Eric Schenk, Bruno Haible * 阅读全文
posted @ 2019-12-14 19:23 Smah 阅读(646) 评论(0) 推荐(0) 编辑
摘要: // SPDX-License-Identifier: GPL-2.0 /* * linux/ipc/namespace.c * Copyright (C) 2006 Pavel Emelyanov <xemul@openvz.org> OpenVZ, SWsoft Inc. */ #include 阅读全文
posted @ 2019-12-14 19:22 Smah 阅读(440) 评论(0) 推荐(0) 编辑
摘要: // SPDX-License-Identifier: GPL-2.0-or-later /* * linux/ipc/msgutil.c * Copyright (C) 1999, 2004 Manfred Spraul */ #include <linux/spinlock.h> #includ 阅读全文
posted @ 2019-12-14 19:19 Smah 阅读(304) 评论(0) 推荐(0) 编辑
摘要: // SPDX-License-Identifier: GPL-2.0 /* * linux/ipc/msg.c * Copyright (C) 1992 Krishna Balasubramanian * * Removed all the remaining kerneld mess * Cat 阅读全文
posted @ 2019-12-14 19:18 Smah 阅读(355) 评论(0) 推荐(0) 编辑
摘要: 队列的意思应该大家都清楚,不过还有有一些细节的地方不知道,下面是一个队列的源码,因该说这是队列的一部分,不是全部。而且是linux中队列,其他各种OS中队列大同小异。 /* * POSIX message queues filesystem for Linux. * * Copyright (C) 阅读全文
posted @ 2019-12-14 19:17 Smah 阅读(616) 评论(0) 推荐(0) 编辑
摘要: 该结构体在linux中的路径为如下,如果是本地也可以根据以下子目录找到task_struct结构体,该结构体源码中在600多行 https://github.com/torvalds/linux/blob/master/include/linux/sched.h 如下解读: /* SPDX-Lice 阅读全文
posted @ 2019-12-14 16:17 Smah 阅读(2158) 评论(0) 推荐(0) 编辑
摘要: 为什么需要DNS解析域名为IP地址? 网络通讯大部分是基于TCP/IP的,而TCP/IP是基于IP地址的,所以计算机在网络上进行通讯时只能识别如“202.96.134.133”之类的IP地址,而不能认识域名。我们无法记住10个以上IP地址的网站,所以我们访问网站时,更多的是在浏览器地址栏中输入域名, 阅读全文
posted @ 2019-12-14 16:06 Smah 阅读(541) 评论(0) 推荐(0) 编辑