From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2BCF7C2BB1D for ; Tue, 17 Mar 2020 09:14:24 +0000 (UTC) Received: from shelob.surriel.com (shelob.surriel.com [96.67.55.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D86CD205ED for ; Tue, 17 Mar 2020 09:14:23 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D86CD205ED Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=vt.edu Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kernelnewbies-bounces@kernelnewbies.org Received: from localhost ([::1] helo=shelob.surriel.com) by shelob.surriel.com with esmtp (Exim 4.92.3) (envelope-from ) id 1jE8Hs-0002Vd-3P; Tue, 17 Mar 2020 05:13:24 -0400 Received: from omr2.cc.ipv6.vt.edu ([2607:b400:92:8400:0:33:fb76:806e] helo=omr2.cc.vt.edu) by shelob.surriel.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92.3) (envelope-from ) id 1jE8Ho-0002VX-NT for kernelnewbies@kernelnewbies.org; Tue, 17 Mar 2020 05:13:20 -0400 Received: from mr4.cc.vt.edu (mr4.cc.vt.edu [IPv6:2607:b400:92:8300:0:7b:e2b1:6a29]) by omr2.cc.vt.edu (8.14.4/8.14.4) with ESMTP id 02H9DILq020547 for ; Tue, 17 Mar 2020 05:13:18 -0400 Received: from mail-qv1-f71.google.com (mail-qv1-f71.google.com [209.85.219.71]) by mr4.cc.vt.edu (8.14.7/8.14.7) with ESMTP id 02H9DDbW005791 for ; Tue, 17 Mar 2020 05:13:18 -0400 Received: by mail-qv1-f71.google.com with SMTP id m5so19250161qvy.0 for ; Tue, 17 Mar 2020 02:13:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:in-reply-to:references :mime-version:content-transfer-encoding:date:message-id; bh=irErlrezuU/R2an100KfkSAnxW6fjxtomUR+pUVpiZU=; b=CcL+5FduemVc6zY8tRIScCVP0+27R63TCM1xdr/w/GV6EN5wmVT/j00r7t4FJCS7t8 SycGW7OIpixTDSkOUeggFE7bbpS5VuxNDxus3SrNCTdkJWRxiXOLrCUhChgyYcAYdMoS jSGLgnz6wEalxCkXWGgkEKgEXB1QYgKzBlUEGQVwsCq+SeIWxLTSizWqlZgYwD0lvqIV D9bLCE0h2ZbE4VVxBsFi40IGrlIYR4EbTtqM6M+GJbZlZhgEs6TdseouXVJ50upsAXmh /MlgCsU+6dC54NGszAdeWuyDhN7W5t9dQ+y9GpnJVhMQ+h86MUyAaXwOIlvJU1eML0Wx fPtQ== X-Gm-Message-State: ANhLgQ2zN5Z8vKBPR4QqnNhTC80qRwTkPyDxxVF54WrF3NDofRDvxEqb pg6rx3c1WFibvF+kdislAK3/xLQ5zZqYxvLuRPua8KvzrtowJRACeYph4I4Chpo1I2oqDzqGRe5 5idNpQG61GR9foJDif7upl7addQ+NUZHZcxYDg2w= X-Received: by 2002:ac8:ac1:: with SMTP id g1mr4269574qti.287.1584436392739; Tue, 17 Mar 2020 02:13:12 -0700 (PDT) X-Google-Smtp-Source: ADFU+vt/Qxsx+EMdLeI61SBKmeStQ1oke0h4JgzIrZEpIvXyAEBjA8v9Bddpaf0iQHdiUUGmXdoF0w== X-Received: by 2002:ac8:ac1:: with SMTP id g1mr4269557qti.287.1584436392423; Tue, 17 Mar 2020 02:13:12 -0700 (PDT) Received: from turing-police ([2601:5c0:c001:c9e1::359]) by smtp.gmail.com with ESMTPSA id m67sm1467140qke.101.2020.03.17.02.13.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Mar 2020 02:13:10 -0700 (PDT) From: "Valdis Kl=?utf-8?Q?=c4=93?=tnieks" X-Google-Original-From: "Valdis Kl=?utf-8?Q?=c4=93?=tnieks" X-Mailer: exmh version 2.9.0 11/07/2018 with nmh-1.7+dev To: Sankalp Bhardwaj Subject: Re: In-Reply-To: References: Mime-Version: 1.0 Date: Tue, 17 Mar 2020 05:13:09 -0400 Message-ID: <798884.1584436389@turing-police> Cc: kernelnewbies@kernelnewbies.org X-BeenThere: kernelnewbies@kernelnewbies.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Learn about the Linux kernel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============7758321329877676887==" Errors-To: kernelnewbies-bounces@kernelnewbies.org --===============7758321329877676887== Content-Type: multipart/signed; boundary="==_Exmh_1584436389_13328P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit --==_Exmh_1584436389_13328P Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On Tue, 17 Mar 2020 04:37:58 +0530, Sankalp Bhardwaj said: > Where to get started?? I am interested in understanding how the > kernel works but have no prior knowledge... Please help=21=21 A good place to start is to realize that the answers often depend on what= the question is - and there's usually a difference between the question that = is asked, and the question that the person needs the answer for. You probab= ly want to read this: https://lists.kernelnewbies.org/pipermail/kernelnewbies/2017-April/017765= .html Something that you'll need is a good understanding of operating system concepts. Almost all modern computer systems have some idea of basic conc= epts such as processes, files, a directory structure, security and permissions= , scheduling, locking, and so on. And for most of these, there is more tha= n one way to accomplish the goal. So two books that are useful to read for a compare-and-contrast view are = Bach's book on the System V kernel, and McKusic's book on the BSD kernel - both = go into details of *why* some things are done they are. It's really helpful= to see stuff like =22We need to lock this inode while we do X, because other= wise another thread could concurrently do Y, and then Bad Thing Z will happen= =22. Of course, a Linux filesystem that does things differently won't have the= same exact issues, but understanding the *sort* of things that break when you = screw up your locking is quite the useful info, especially if most of your codi= ng has been in userspace where single-threaded is common and libraries did their= own locking when needed. I admit that I also learned a bunch from Tanenbaum's =22Modern Operating Systems=22, but that was a long long time ago in a galaxy far far away, a= nd I have no idea what the cool kids are reading instead these days... --==_Exmh_1584436389_13328P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Comment: Exmh version 2.9.0 11/07/2018 iQIVAwUBXnCUpQdmEQWDXROgAQLXHxAAqp5rK0YKMGb9tBYkMmgXDzc+MTsivjB0 yZfmUByFWn21lwU4PgrZkwtvrRyCVyHO5kHEGUT5IKm/6oe2H3S3Xw2XgZQKQylL DlhJxGcjkRMEoHMN83xbiQtEQfCNA/F/KyKOmJl7LRYiy/8IWOSznXpwb2U38JWB 7MkKt65lo6kWL96XdZ2qSzibL0vOj1KkCFbhrix8a3mhot8pw13IrU5DOpfydfh7 wbGZ18Y9v0lerxDTjTOnigRNX5Im66GPb4l7pNIdsdwXrFI925/qcaHGDiewYkon +kb1tdhFJy9B3HaFDeUQuv57tjIOC4lSNs63mXx0Z3fvy9za9JM7403MR5l/kqsz S+ujZj8MlksdNiHUrYl2HY+SQte08TH9kv+5XOMS5QZCQTN3Yd5XeUirv9guXqAl u9nn/KtDhTSPIzTSFXC6eKnbl4oB2JtLFTq0LAH+ueh23iJgSA3EEl/wMhcKsfb4 p1dSRA7LZSvcD8c/bZT3FMFYigGpGSq3i+mXAnASLqB0cLEDEKD//GV2CpPef2YC 7reaNL5TRCPXjaX8yFpApjYuGahImoRj4bmQebFx+tDsFhWWdnLNC6vQJsnot+5T mh1SYk0D5qqMA8mIcg1Ny67/eamumAY/OKttSyVXG8VrsECyPnlGhYMaMC8f+vWh 49kJQp96xcM= =ZWce -----END PGP SIGNATURE----- --==_Exmh_1584436389_13328P-- --===============7758321329877676887== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies --===============7758321329877676887==--