Gentoo Logo
Gentoo Spaceship

Installation:
Gentoo Handbook
Installation Docs

Documentation:
Home
Listing
About Gentoo
Philosophy
Social Contract

Resources:
Bug Tracker
Developer List
Discussion Forums
Gentoo BitTorrents
Gentoo Linux Enhancement Proposals
IRC Channels
Mailing Lists
Mirrors
Name and Logo Guidelines
Online Package Database
Security Announcements
Staffing Needs
Supporting Vendors
View our CVS

Graphics:
Logos and themes
Icons
ScreenShots

Miscellaneous Resources:
Gentoo Linux Store
Gentoo-hosted projects
IBM dW/Intel article archive




List Archive: gentoo-kernel
Navigation:
Lists: gentoo-kernel: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-kernel@g.o
From: Greg KH <gregkh@g.o>
Subject: Re: linux-mod addition: modules.d file generation
Date: Sun, 5 Dec 2004 10:17:05 -0800

 1.1

On Sun, Dec 05, 2004 at 05:31:49PM +0000, Daniel Drake wrote:
> Hi,
> 
> As suggested by cyfred, I've written some code to allow /etc/modules.d 
> files to be created automatically.
> 
> I have attached an updated version of the nvidia-kernel ebuild that uses 
> this, also the nvidia source had to be patched to export parameter 
>  descriptions (but any well written module will not require this).
> 
> Here is the /etc/modules.d/nvidia file which gets produced (it has 
> linewrapped in this mail, but hopefully you get the picture)
> 
> ----------
> 
> # Configuration file for nvidia module
> 
> # Internal aliases, do not edit
> alias char-major-195 nvidia
> alias /dev/nvidiactl char-major-195

Why do you need these?  Aren't they automatically generated by depmod if
you put the correct code in the kernel module source code (see the
MODULE_ALIAS() stuff.)

> # Configurable module parameters
> # For more details, see /usr/share/doc/nvidia-kernel-1.0.6629/README.gz
> #
> #  silence_nvidia_output - Silence output: 0 (default, verbose)  or 1 
> (silent)
> #  NVreg_EnableVia4x - Enable AGP4x on VIA chipsets (default disabled)
> #  NVreg_EnableALiAGP - Enable AGP on ALi1541/1647 chipsets (default 
> disabled)
> #  NVreg_NvAGP - Select which AGPGART is used if unspecified by X - 0 
> (disable), 1 (use nvidia), 2 (use kernel), 3 (try 2 then 1, default)
> #  NVreg_EnableAGPSBA - Enable AGP Side Band Addressing
> #  NVreg_EnableAGPFW - Enable AGP Fast Writes (default disabled)
> #  NVreg_SoftEDIDs - Enable dynamic generation of EDID info (default 
> enabled)
> #  NVreg_Mobile - Select Mobile registry key when SoftEDIDs is disabled - 0 
> (auto, default), 1 (Dell), 2 (Toshiba), 3 (other), 4 (Compal/Toshiba), 5 
> (Gateway)

modinfo also generates this automaticallly, with full strings, right?
Hm, your patch has that.

I guess I don't see the need for why we have these modules.d files.
Anyone want to hit me with the cluestick for being not awake yet today?

thanks,

greg k-h

--
gentoo-kernel@g.o mailing list

Replies:
Re: linux-mod addition: modules.d file generation
-- Daniel Drake
References:
linux-mod addition: modules.d file generation
-- Daniel Drake
Navigation:
Lists: gentoo-kernel: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
linux-mod addition: modules.d file generation
Next by thread:
Re: linux-mod addition: modules.d file generation
Previous by date:
linux-mod addition: modules.d file generation
Next by date:
Re: linux-mod addition: modules.d file generation


May 29, 2008

Donate to support our development efforts.

Gentoo Centric Hosting: vr.org

VR Hosted

Tek Alchemy

Tek Alchemy

SevenL.net

SevenL.net

php|architect

php|architect

Copyright 2001-2007 Gentoo Foundation, Inc. Questions, Comments? Email www@gentoo.org.