Re: My effort to learn Linux kernel development

2021-07-23 Thread sri vathsa
On Fri, Jul 23, 2021, 9:47 PM Connor Kuehl  wrote:

What about Linux Kernel Development by Robert Love, I have been that
reading book and comparing code in book with current kernel version


> ___
> Kernelnewbies mailing list
> Kernelnewbies@kernelnewbies.org
> https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: My effort to learn Linux kernel development

2021-07-23 Thread Connor Kuehl
On 7/23/21 9:37 AM, Raghuram Jallipalli wrote:
> Isn't the LDD 3E by Rubini not a good book ? Has it become outdated
> with respect to the current kernel version ??

In my opinion, it's an excellent book. I'd imagine it's pretty rare for
a book covering the internals of a software project to *not* become
quickly outdated.

However, that's not necessarily a bad thing, so don't write it off just
yet. Depending on your learning style, you might find it beneficial to
follow along anyway and try to reconcile the differences between the
book and the state of today's Linux source code.

Connor

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: My effort to learn Linux kernel development

2021-07-23 Thread Raghuram Jallipalli
On Fri, Jul 23, 2021 at 10:18 AM Amit Kumar  wrote:
>
> On Fri, Jul 23, 2021 at 5:24 PM Robert P. J. Day  
> wrote:
> >
> > On Fri, 23 Jul 2021, Amit Kumar wrote:
> >
> > ... lots of stuff snipped ...
> >
> > > Thanks for your words. I kindly request your mentorship. So that it
> > > will be easy for me to make my blog
> > > (https://freeark1blog.blogspot.com) as a gateway to the Linux kernel
> > > development.
> >
> >   i dropped gregkh from this response as i don't think he's interested
> > in any followup, so here's my thoughts.
> >
> >   i checked out a couple articles at your blog and i'm not trying to
> > be harsh, but there's very little useful content there. aside from the
> > numerous spelling mistakes, the articles are extremely superficial
> > and, in many cases, are imprecise to the point where it's not clear
> > what you're even trying to say.
> >
> >   here's an example:
> >
> > "Kernel is like the kernel of a nut. It is a bit difficult for an
> > application program to interact with the kernel directly i.e. it will
> > be a time consuming task to write an application program with the help
> > of the kernel only."
> >
> >   i have no idea what that means, or what point you're trying to get
> > across, and most of the articles there are like that. if you want to
> > keep writing, that's great, do whatever you enjoy, but you're being
> > wildly optimistic if you want to describe your blog as a "gateway to
> > linux kernel development."
> >
> >   if i were you, i would do less writing, and way more reading. again,
> > i'm not trying to discourage you, but you really need to set your
> > expectations appropriately.
> >
> Thanks for your time and feedback. You are right.
> Except for the last two articles, all other articles were written with
> the intention to introduce a layman to digital devices.
> I have just resumed blogging. I will surely improve my articles
> according to your feedback.
> I am enthusiastic about bringing more and more developers to the Linux
> community.
> I wish your support in the future also.
>
Isn't the LDD 3E by Rubini not a good book ? Has it become outdated
with respect to the current kernel version ??

> Regards,
> Amit Kumar
> > rday
>
> ___
> Kernelnewbies mailing list
> Kernelnewbies@kernelnewbies.org
> https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: My effort to learn Linux kernel development

2021-07-23 Thread Amit Kumar
On Fri, Jul 23, 2021 at 5:24 PM Robert P. J. Day  wrote:
>
> On Fri, 23 Jul 2021, Amit Kumar wrote:
>
> ... lots of stuff snipped ...
>
> > Thanks for your words. I kindly request your mentorship. So that it
> > will be easy for me to make my blog
> > (https://freeark1blog.blogspot.com) as a gateway to the Linux kernel
> > development.
>
>   i dropped gregkh from this response as i don't think he's interested
> in any followup, so here's my thoughts.
>
>   i checked out a couple articles at your blog and i'm not trying to
> be harsh, but there's very little useful content there. aside from the
> numerous spelling mistakes, the articles are extremely superficial
> and, in many cases, are imprecise to the point where it's not clear
> what you're even trying to say.
>
>   here's an example:
>
> "Kernel is like the kernel of a nut. It is a bit difficult for an
> application program to interact with the kernel directly i.e. it will
> be a time consuming task to write an application program with the help
> of the kernel only."
>
>   i have no idea what that means, or what point you're trying to get
> across, and most of the articles there are like that. if you want to
> keep writing, that's great, do whatever you enjoy, but you're being
> wildly optimistic if you want to describe your blog as a "gateway to
> linux kernel development."
>
>   if i were you, i would do less writing, and way more reading. again,
> i'm not trying to discourage you, but you really need to set your
> expectations appropriately.
>
Thanks for your time and feedback. You are right.
Except for the last two articles, all other articles were written with
the intention to introduce a layman to digital devices.
I have just resumed blogging. I will surely improve my articles
according to your feedback.
I am enthusiastic about bringing more and more developers to the Linux
community.
I wish your support in the future also.

Regards,
Amit Kumar
> rday

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


seeking guidance on adding MOD_PARAM_BITMAP

2021-07-23 Thread jim . cromie
hi folks,

I would like to add something like the following:

MOD_PARM_DYNDBG_BITMAP_DESC(__gvt_debug, "dyndbg bitmap desc",
{ "gvt: cmd: ",  "command processing" },
{ "gvt: core: ", "core help" },
{ "gvt: dpy: ",  "display help" },
{ "gvt: el: ",   "help" },
{ "gvt: irq: ",  "help" },
{ "gvt: mm: ",   "help" },
{ "gvt: mmio: ", "help" },
{ "gvt: render: ", "help" },
{ "gvt: sched: " "help" });

the point is to declaratively define an interface, a lot like:

/sys/module/drm/parameters/debug
and
$> modinfo drm
...
parm:   debug:Enable debug output, where each bit enables a
debug category.
Bit 0 (0x01)  will enable CORE messages (drm core code)
Bit 1 (0x02)  will enable DRIVER messages (drm controller code)
Bit 2 (0x04)  will enable KMS messages (modesetting code)
Bit 3 (0x08)  will enable PRIME messages (prime code)
Bit 4 (0x10)  will enable ATOMIC messages (atomic code)
Bit 5 (0x20)  will enable VBL messages (vblank code)
Bit 7 (0x80)  will enable LEASE messages (leasing code)
Bit 8 (0x100) will enable DP messages (displayport code) (int)


is there anything close to this in the kernel that I can copy & modify ?

failing that, what set of macros
(names & files they should be implemented in )
would stand some chance of surviving review ?

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: My effort to learn Linux kernel development

2021-07-23 Thread Robert P. J. Day
On Fri, 23 Jul 2021, Amit Kumar wrote:

... lots of stuff snipped ...

> Thanks for your words. I kindly request your mentorship. So that it
> will be easy for me to make my blog
> (https://freeark1blog.blogspot.com) as a gateway to the Linux kernel
> development.

  i dropped gregkh from this response as i don't think he's interested
in any followup, so here's my thoughts.

  i checked out a couple articles at your blog and i'm not trying to
be harsh, but there's very little useful content there. aside from the
numerous spelling mistakes, the articles are extremely superficial
and, in many cases, are imprecise to the point where it's not clear
what you're even trying to say.

  here's an example:

"Kernel is like the kernel of a nut. It is a bit difficult for an
application program to interact with the kernel directly i.e. it will
be a time consuming task to write an application program with the help
of the kernel only."

  i have no idea what that means, or what point you're trying to get
across, and most of the articles there are like that. if you want to
keep writing, that's great, do whatever you enjoy, but you're being
wildly optimistic if you want to describe your blog as a "gateway to
linux kernel development."

  if i were you, i would do less writing, and way more reading. again,
i'm not trying to discourage you, but you really need to set your
expectations appropriately.

rday

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: My effort to learn Linux kernel development

2021-07-23 Thread Amit Kumar
On Fri, Jul 23, 2021 at 4:12 PM Robert P. J. Day  wrote:
>
> On Fri, 23 Jul 2021, Amit Kumar wrote:
>
> > On Thu, Jul 22, 2021 at 8:26 PM Robert P. J. Day  
> > wrote:
> > >
> > > On Thu, 22 Jul 2021, Jules Irenge wrote:
> > >
> > > > I normally learn the kernel on weekends. Reading R. Love and
> > > > practicing by coding what you learn is the best way. Also, trying to
> > > > submit simple patches on some free time is a good way , meeting Greg
> > > > Kroah and Shuan, they are fantastic people to learn from.
> > Is there any online method to interact with Mr. Greg Kroah Hartman?
> > >
> > >   as the tech editor of the r. love kernel book, i can safely say that
> > > there are no really current kernel books out there anymore -- the best
> > > docs are the in-kernel ones.
> > I started reading documents from the Documentation folder.
> > >
> > >   also, if you want to get started mucking with the kernel and
> > > submitting patches, consider improving the documentation -- there is a
> > > lot of documentation that is at least a little out of date and could
> > > use all the help it can get, and that's an easy and safe way to get
> > > started getting your name into the kernel git log.
> > >
> > I know well that there is not any book that provides current knowledge
> > about the Linux kernel.
> > So, I have decided to make my blog (https://freeark1blog.blogspot.com)
> > a gateway to the Linux kernel development.
> >
> > Why were the last kernel book by Mr. Greg Kroah Hartman and et. al. 
> > canceled?
>
>   there's not much financial incentive to write kernel books anymore;
> the code base changes so relentlessly that any book is pretty much out
> of date by the time it hits the shelves, and few authors want to
> invest months of their life for that. and what's the point of having a
> small number of authors working on a book, when the entire linux
> community is co-operating to improve the inline docs, anyway?
>
> rday
>
> p.s. it also occurs that the kernel is so vast that there's no way
> you could do justice to it in a single book. there might (i emphasize
> *might*) be some value in writing a comprehensive book on some single
> kernel subsystem, but even that would be obviated by decent inline
> docs.
OK. Time will tell how much I remain successful in helping out developers to
learn kernel development.

I highly respect your feeling about this situation.

Regards,
Amit Kumar

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: My effort to learn Linux kernel development

2021-07-23 Thread Robert P. J. Day
On Fri, 23 Jul 2021, Amit Kumar wrote:

> On Thu, Jul 22, 2021 at 8:26 PM Robert P. J. Day  
> wrote:
> >
> > On Thu, 22 Jul 2021, Jules Irenge wrote:
> >
> > > I normally learn the kernel on weekends. Reading R. Love and
> > > practicing by coding what you learn is the best way. Also, trying to
> > > submit simple patches on some free time is a good way , meeting Greg
> > > Kroah and Shuan, they are fantastic people to learn from.
> Is there any online method to interact with Mr. Greg Kroah Hartman?
> >
> >   as the tech editor of the r. love kernel book, i can safely say that
> > there are no really current kernel books out there anymore -- the best
> > docs are the in-kernel ones.
> I started reading documents from the Documentation folder.
> >
> >   also, if you want to get started mucking with the kernel and
> > submitting patches, consider improving the documentation -- there is a
> > lot of documentation that is at least a little out of date and could
> > use all the help it can get, and that's an easy and safe way to get
> > started getting your name into the kernel git log.
> >
> I know well that there is not any book that provides current knowledge
> about the Linux kernel.
> So, I have decided to make my blog (https://freeark1blog.blogspot.com)
> a gateway to the Linux kernel development.
>
> Why were the last kernel book by Mr. Greg Kroah Hartman and et. al. canceled?

  there's not much financial incentive to write kernel books anymore;
the code base changes so relentlessly that any book is pretty much out
of date by the time it hits the shelves, and few authors want to
invest months of their life for that. and what's the point of having a
small number of authors working on a book, when the entire linux
community is co-operating to improve the inline docs, anyway?

rday

p.s. it also occurs that the kernel is so vast that there's no way
you could do justice to it in a single book. there might (i emphasize
*might*) be some value in writing a comprehensive book on some single
kernel subsystem, but even that would be obviated by decent inline
docs.

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: My effort to learn Linux kernel development

2021-07-23 Thread Greg KH
On Fri, Jul 23, 2021 at 03:02:53PM +0530, Amit Kumar wrote:
> > > I know well that there is not any book that provides current knowledge
> > > about the Linux kernel.
> > > So, I have decided to make my blog (https://freeark1blog.blogspot.com)
> > > a gateway to the Linux kernel development.
> > >
> > > Why were the last kernel book by Mr. Greg Kroah Hartman and et. al. 
> > > canceled?
> >
> > Long story, not involving the authors at all.  A new version is not
> > going to happen any year soon so don't even worry about it.
> >
> Thanks for your words. I kindly request your mentorship. So that it
> will be easy for me to make my blog
> (https://freeark1blog.blogspot.com) as
> a gateway to the Linux kernel development.

That is not how any of this works, sorry.  I am already mentoring many
people through the LF mentorship program, feel free to sign up for the
next round of interns through that project if you are interested.

good luck!

greg k-h

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: My effort to learn Linux kernel development

2021-07-23 Thread Amit Kumar
On Fri, Jul 23, 2021 at 12:13 PM Greg KH  wrote:
>
> On Fri, Jul 23, 2021 at 04:54:41AM +0530, Amit Kumar wrote:
> > On Thu, Jul 22, 2021 at 8:26 PM Robert P. J. Day  
> > wrote:
> > >
> > > On Thu, 22 Jul 2021, Jules Irenge wrote:
> > >
> > > > I normally learn the kernel on weekends. Reading R. Love and
> > > > practicing by coding what you learn is the best way. Also, trying to
> > > > submit simple patches on some free time is a good way , meeting Greg
> > > > Kroah and Shuan, they are fantastic people to learn from.
> > Is there any online method to interact with Mr. Greg Kroah Hartman?
>
> Send patches for review.
I sent my solo patch back in 2017. But this time I am expecting to
send a never-ending stream of patches.
>
> > >   also, if you want to get started mucking with the kernel and
> > > submitting patches, consider improving the documentation -- there is a
> > > lot of documentation that is at least a little out of date and could
> > > use all the help it can get, and that's an easy and safe way to get
> > > started getting your name into the kernel git log.
> > >
> > I know well that there is not any book that provides current knowledge
> > about the Linux kernel.
> > So, I have decided to make my blog (https://freeark1blog.blogspot.com)
> > a gateway to the Linux kernel development.
> >
> > Why were the last kernel book by Mr. Greg Kroah Hartman and et. al. 
> > canceled?
>
> Long story, not involving the authors at all.  A new version is not
> going to happen any year soon so don't even worry about it.
>
Thanks for your words. I kindly request your mentorship. So that it
will be easy for me to make my blog
(https://freeark1blog.blogspot.com) as
a gateway to the Linux kernel development.

Regards,
Amit Kumar

> thanks,
>
> greg k-h

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: My effort to learn Linux kernel development

2021-07-23 Thread Greg KH
On Fri, Jul 23, 2021 at 04:54:41AM +0530, Amit Kumar wrote:
> On Thu, Jul 22, 2021 at 8:26 PM Robert P. J. Day  
> wrote:
> >
> > On Thu, 22 Jul 2021, Jules Irenge wrote:
> >
> > > I normally learn the kernel on weekends. Reading R. Love and
> > > practicing by coding what you learn is the best way. Also, trying to
> > > submit simple patches on some free time is a good way , meeting Greg
> > > Kroah and Shuan, they are fantastic people to learn from.
> Is there any online method to interact with Mr. Greg Kroah Hartman?

Send patches for review.

> >   also, if you want to get started mucking with the kernel and
> > submitting patches, consider improving the documentation -- there is a
> > lot of documentation that is at least a little out of date and could
> > use all the help it can get, and that's an easy and safe way to get
> > started getting your name into the kernel git log.
> >
> I know well that there is not any book that provides current knowledge
> about the Linux kernel.
> So, I have decided to make my blog (https://freeark1blog.blogspot.com)
> a gateway to the Linux kernel development.
> 
> Why were the last kernel book by Mr. Greg Kroah Hartman and et. al. canceled?

Long story, not involving the authors at all.  A new version is not
going to happen any year soon so don't even worry about it.

thanks,

greg k-h

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies