From owner-freebsd-hackers@freebsd.org Wed May 22 05:39:56 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 9FFA515A1240; Wed, 22 May 2019 05:39:56 +0000 (UTC) (envelope-from dmytrosichkar@gmail.com) Received: from mail-pg1-x532.google.com (mail-pg1-x532.google.com [IPv6:2607:f8b0:4864:20::532]) (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 654FB6C7B4; Wed, 22 May 2019 05:39:55 +0000 (UTC) (envelope-from dmytrosichkar@gmail.com) Received: by mail-pg1-x532.google.com with SMTP id e17so571436pgo.9; Tue, 21 May 2019 22:39:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=IxeSVBLLncCrUblXSt+3WwdeWJSiHvVJDc6kZeFQT5Y=; b=NzytnSaAcqMLD9jDAVsNS4d18CL88cWv+JuSL5ra5Idq/6OXOZWsW6vHRCdacIZP8K e+2F5lPg5piugeX6cEKQzXMVNwnFzIm1Lg+5B4J7TQQ4Q/0eh7eAZqziIK2Y+dsxcaN+ rDIbKGih5Ya78WJ5icgV2UbntiLdKMf/QDRlDIbIum75TeZUHbXYVSxHqlTlNsTZociu wosqLneg/TK8msyJd9pJu4zAqgx53ySyxgIOjPuZBHy/KIJiRNKxp4yEo8taQhM0EXw6 gvlbmvDl6tp6kUzmSB6nz8I7ALsOZT97uQNPN0OH9N2TQab7jXRWCtKqy1Z6eEZON9wO 0dUw== 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=IxeSVBLLncCrUblXSt+3WwdeWJSiHvVJDc6kZeFQT5Y=; b=TMePhomGsErCeQkfsyJOjqMinh6hUOMc6CcS3N4wgqItxtvTviZQeVrbcksv1pJdSx anrv5lkpdbCFjsltfc810hvpqGFkCsBnOJl0weFzBPXVpFZ/vkkLDgwKw+TXT/sp450a GEeGxOl92puUbJo0qWTx/U+2lesa119ZHWbiAxx489toprs+OODXgHoChvIf1KVHEGse MJrPdTqN+EGzmVpSZltK33pxdnbtfZvfTmF0fHxM+KsiJOBHcJle5BELQbepO/XItfoW HN192Ixay9FkJ9rDGSpbsz3Oq4v9ds8+BisMysyjzDXNNU5YZMuFjuFsnk6joNg2OQJ3 oWfA== X-Gm-Message-State: APjAAAV7qpzgq3Hzku8x276xFapU6OxsZPTvpEFLCIlSMEvgFg7s+cro F/Ig5mqWK1pvLCjUbFhvaMfFtEk/kiWBECLHaCP2FWkg X-Google-Smtp-Source: APXvYqzZkkytH5avuYn5vQt2HlzUp1IDwNbwT2xIBcEZx6RP23cmwqmdcigoGIb3QI0wPx9NvxZYcbiR/Eo2ovnivfc= X-Received: by 2002:a62:4281:: with SMTP id h1mr94069449pfd.162.1558503594217; Tue, 21 May 2019 22:39:54 -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: Dima Sichkar Date: Wed, 22 May 2019 08:39:36 +0300 Message-ID: Subject: Re: newbie question To: "Rodney W. Grimes" Cc: "Greg 'groggy' Lehey" , freebsd-hackers@freebsd.org, freebsd-questions@freebsd.org, Alexandru Goia X-Rspamd-Queue-Id: 654FB6C7B4 X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=NzytnSaA; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of dmytrosichkar@gmail.com designates 2607:f8b0:4864:20::532 as permitted sender) smtp.mailfrom=dmytrosichkar@gmail.com X-Spamd-Result: default: False [-6.92 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; RCVD_TLS_LAST(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCPT_COUNT_FIVE(0.00)[5]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RCVD_IN_DNSWL_NONE(0.00)[2.3.5.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; IP_SCORE(-2.94)[ip: (-9.10), ipnet: 2607:f8b0::/32(-3.27), asn: 15169(-2.27), country: US(-0.06)]; NEURAL_HAM_SHORT(-0.97)[-0.967,0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0] Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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 05:39:56 -0000 You could also meditate on a "Grand Map": https://dspinellis.github.io/unix-architecture/arch.pdf It's helping me alot in binding source to some visual anchors. =D1=81=D1=80, 22 =D0=BC=D0=B0=D1=8F 2019 =D0=B3. =D0=B2 07:12, Rodney W. Gr= imes : > > 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. SO, I encorage you and > others new to the code, learn these data structure names, and mentall > process them by long name, it could help you to better understand > what it is your reading. > > The BSD sources are very consistent in its use of names and objects, > and abbriviates, taking that to your advantage! > > Anyone any place have a nice list of the TLA to full name? > pcb > tcb > p > tp > ifa > ... > > > Greg > -- > Rod Grimes > rgrimes@freebsd.org > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org= " >