Skip to contentSkip to conversation

Organize/Move of the Ethernet drivers in drivers/net/

RFC Alexey Dobriyan 3 participants 3 messages Jul 31, 2011 – Aug 1, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw
Quoted 1 line

drivers/net/{ => ethernet/3com}/3c501.c

I for one appreciate that Linux has short overall directory structure. At work we have like 5-6 directories before actual code and it sucks very much.

Quoted 1 line

have tab-completion actually work

What do you mean?

#1 lore raw
Quoted 5 lines · Alexey Dobriyan
Quoted 1 line

drivers/net/{ => ethernet/3com}/3c501.c

I for one appreciate that Linux has short overall directory structure. At work we have like 5-6 directories before actual code and it sucks very much.

I agree to some degree. I agree that it nice to only have to go 2-3 layers deep to get to code, but it is also not useful to wade through 357 files in a directory.

drivers/net/ is the largest directory under drivers/ and is 2 times larger than the next largest directory in drivers/. There are 2255 files/directories in /drivers/net/ and majority are Ethernet drivers. It has gotten to a point where there needed to be an additional level(s) of organization. So yes, you have to dig a bit deeper (but it is logical).

drivers/media/ is the next largest at 23 MB with 1526 files.

Quoted 4 lines
Quoted 2 lines

have tab-completion actually work

What do you mean?

What I meant was that tab-completion not becoming not useful when you get >20 results, you usually end up having to type the entire file name for what you want. It is nice to type 1-2 characters (and then <tab>) and get back <5 potential or exact results. David actually brought this up as an advantage to the new directory structure, which I agree with.

maintainer
#2 lore raw
In reply to Alexey Dobriyan

From: Alexey Dobriyan <[email protected]>
Date: Sun, 31 Jul 2011 18:45:16 +0300

Quoted 3 lines
Quoted 1 line

have tab-completion actually work

What do you mean?

Try to type a path down into drivers/net/ then try to use TAB completion to finish the path to some driver file.

It's painful and you have to give it so much context before it'll do anything that it completely negates the benefits of TAB completion.