From owner-freebsd-hackers@freebsd.org Wed May 22 07:28:09 2019 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4C56D15A33EB; Wed, 22 May 2019 07:28:09 +0000 (UTC) (envelope-from pratiy0100@gmail.com) Received: from mail-ed1-f53.google.com (mail-ed1-f53.google.com [209.85.208.53]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 20FC570714; Wed, 22 May 2019 07:28:08 +0000 (UTC) (envelope-from pratiy0100@gmail.com) Received: by mail-ed1-f53.google.com with SMTP id e24so2332322edq.6; Wed, 22 May 2019 00:28:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=gyGmJO3/QIiFML/byJmdBhRfKThsKPSVRR6zsceOq4w=; b=F7tVNmHeUpKjxSQf8uUiFQ/NJgeeEPQIpXKv1ODZ1egVL7ieu1pVj8TGhcZ+lmnAhK 2AZzwguDVQELTmAtURm6U9ntegiBUfye02Sh5+vqsDjB0in2QDiw3cuKV8Yt//XblxDS MWYMxGsjmZtZlk2CLWzPn3hCFm6Jhe8zg1LpjkCI2oyoqtpQfs+eMrSoJEvSM1A5pYCc FRInHmceECo50tzAXi5HDfECq6iFnUpqSi2PGzUecJPF7rhJnWesMYT9SBivhxIaSVk3 OJ0b2gtcVdP2OoWgGppfrUkeTxc2aZFmLt66I2JhkeyFv0q0IvbCqwD5Udq91rZ5aEPS QEvA== X-Gm-Message-State: APjAAAXRz5ya6Evx0i3CQkTR3yU5YKfyAvqTWjiMjP090Uzp4YHEpjfF +qq8BqcgHEBIrTwuhFr5WTJF2FQ0LKE= X-Google-Smtp-Source: APXvYqzbqE6rq4QnY4vF+SWpkcWzoEy4tPR7NaipR0BB5hWw9KPmQqrZI3L0wFKumw+rU8qyKkaTfQ== X-Received: by 2002:a17:906:7d50:: with SMTP id l16mr1858327ejp.84.1558510080623; Wed, 22 May 2019 00:28:00 -0700 (PDT) Received: from mail-ed1-f42.google.com (mail-ed1-f42.google.com. [209.85.208.42]) by smtp.gmail.com with ESMTPSA id f25sm6883925ede.44.2019.05.22.00.28.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 22 May 2019 00:28:00 -0700 (PDT) Received: by mail-ed1-f42.google.com with SMTP id f37so2281774edb.13; Wed, 22 May 2019 00:28:00 -0700 (PDT) X-Received: by 2002:a05:6402:78f:: with SMTP id d15mr35611272edy.189.1558510079930; Wed, 22 May 2019 00:27:59 -0700 (PDT) MIME-Version: 1.0 References: <20190521234006.GS16860@eureka.lemis.com> <201905220410.x4M4AcOZ082596@gndrsh.dnsmgr.net> In-Reply-To: <201905220410.x4M4AcOZ082596@gndrsh.dnsmgr.net> From: Pratyush Yadav Date: Wed, 22 May 2019 12:57:23 +0530 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: newbie question To: "Rodney W. Grimes" Cc: Hackers freeBSD , freebsd-questions@freebsd.org, Alexandru Goia Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 20FC570714 X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; spf=pass (mx1.freebsd.org: domain of pratiy0100@gmail.com designates 209.85.208.53 as permitted sender) smtp.mailfrom=pratiy0100@gmail.com X-Spamd-Result: default: False [-5.13 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; R_SPF_ALLOW(-0.20)[+ip4:209.85.128.0/17]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; DMARC_NA(0.00)[freebsd.org]; TO_DN_SOME(0.00)[]; RCVD_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; NEURAL_HAM_SHORT(-0.96)[-0.957,0]; RCVD_IN_DNSWL_NONE(0.00)[53.208.85.209.list.dnswl.org : 127.0.5.0]; IP_SCORE(-2.17)[ip: (-5.04), ipnet: 209.85.128.0/17(-3.47), asn: 15169(-2.27), country: US(-0.06)]; FORGED_SENDER(0.30)[pratyush@freebsd.org,pratiy0100@gmail.com]; MIME_TRACE(0.00)[0:+]; R_DKIM_NA(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US]; FROM_NEQ_ENVFROM(0.00)[pratyush@freebsd.org,pratiy0100@gmail.com] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 May 2019 07:28:09 -0000 Hi, On Wed, 22 May 2019 at 09:44, Rodney W. Grimes wrote: > > > On Wednesday, 22 May 2019 at 1:36:24 +0300, Alexandru Goia wrote: > > > greetings. how can do i get attuned in a logical manner with the > > > *bsd/freebsd kernel source code ? thank you very much ! > > > > Clearly you know how to get it (otherwise > > https://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ is your > > friend). To understand it better, I'd suggest reading "The Design and > > Implementation of the FreeBSD Operating System" by Kirk McKusick and > > George Neville-Neil (Addison-Wesley). > > > > Understanding the code requires some work. People will happily answer > > detail questions, but you'll be responsible for finding out the > > overall structure yourself. > > During a somewhat recent session of working with a not new, > but also not seasoned developer, they noted a great deal of > confusion when I was reading through and explaining code > to them when I would actually read "pcb" on screen as > "Process Control Block" when verbalizing it. They could not > see what I had just read to them. > > After a short discussion we realized that my mind was auto translating > the short and cryptic variable names into the full and proper names. > This became key in my understanding of how all these bits work > long long ago and has just become automatic. That's actually great insight. After reading your message I noticed I do the same when working. > [snip] Apart from this, I think usually actually fixing some bug or implementing some feature improves my understanding of a codebase and a community. Fixing a bug is a good motivator for understanding a subsystem. -- Regards, Pratyush Yadav