login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
August
»
11
Re: [PATCH 1/2] param: allow omitting set() methods for truly read-only params
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Dmitry Torokhov
Subject:
Re: [PATCH 1/2] param: allow omitting set() methods for truly read-only params
Date: Wednesday, August 11, 2010 - 12:35 am
On Aug 10, 2010, at 6:39 PM, "Rusty Russell" <rusty@rustcorp.com.au> wrote:
quoted text
> On Wed, 11 Aug 2010 04:28:44 am Dmitry Torokhov wrote: >> Certain "parameters", such as acpica version and upcoming VMware >> Balloon >> version, are need to be purely read-only. They are exported as >> parameters so that they are visible in sysfs even in cases when the >> module is built directly into the kernel, but their values should be >> immutable. Specifying S_IRUGO takes care of sysfs interface, but it >> has no effect on kernel command line or modprobe configuration >> files and >> so these "parameters" attempt to omit set() method. Unfortunately >> kernel expects set() to be always present and crashes if it is not >> there, so let's add appropriate check. >> >> Signed-off-by: Dmitry Torokhov <dtor@vmware.com> > > That almost makes sense, but not quite. > > Your followup patch uses this for version, but the version is already > in /sys/module/vmware_balloon/version as is standard with modules, no? >
That version attribute is not present if the driver is built-in, only parameters are visible in both cases. -- Dmitry --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH 1/2] param: allow omitting set() methods for truly ...
, Dmitry Torokhov
, (Tue Aug 10, 11:58 am)
[PATCH 2/2] VMware balloon: export module version as modul ...
, Dmitry Torokhov
, (Tue Aug 10, 11:58 am)
Re: [PATCH 1/2] param: allow omitting set() methods for tr ...
, Rusty Russell
, (Tue Aug 10, 6:39 pm)
Re: [PATCH 1/2] param: allow omitting set() methods for tr ...
, Dmitry Torokhov
, (Wed Aug 11, 12:35 am)
Re: [PATCH 1/2] param: allow omitting set() methods for tr ...
, Rusty Russell
, (Wed Aug 11, 3:49 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Eric Sandeen
Re: [PATCH] xfs: do not pass unused params to xfs_flush_pages
Alexandre Oliva
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Andi Kleen
Re: x86: 4kstacks default
Andi Kleen
Re: [Xen-devel] Re: [PATCH 00 of 36] x86/paravirt: groundwork for 64-bit Xen support
Adrian Bunk
Re: [PATCH] xfs: #define out unused parameters of?xfs_bmap_add_free and xfs_btree_...
git
:
Felipe Contreras
Re: [kernel.org users] [RFD] On deprecating "git-foo" for builtins
Johannes Schindelin
[PATCH] fetch: refuse to fetch into the current branch in a non-bare repository
Johannes Schindelin
Re: [PATCH] Fix install-doc-quick target
Nicolas Pitre
Re: About git and the use of SHA-1
Alex Riesen
Re: git exclude patterns for directory
linux-netdev
:
Andi Kleen
Re: RFC: Nagle latency tuning
Herbert Xu
Re: Oops in tun: bisected to Limit amount of queued packets per device
gregkh
Patch "IPv6: keep route for tentative address" has been added to the 2.6.34-stable...
Paul Gortmaker
[PATCH net-next 09/16] tipc: Relocate trivial link status functions to header file
Russell King
Re: [BUG] New Kernel Bugs
git-commits-head
:
Linux Kernel Mailing List
sh: Fix compile error by operands(mov.l) in sh3/entry.S
Linux Kernel Mailing List
New device ID for sc92031 [1088:2031]
Linux Kernel Mailing List
tmpfs: depend on shmem
Linux Kernel Mailing List
drivers/acpi: use kasprintf
Linux Kernel Mailing List
Staging: et131x: prune all the debug code
openbsd-misc
:
Andres Salazar
About priorities in /etc/resolv.conf
Tonnerre LOMBARD
Re: bge0: watchdog timeout
Rob Shepherd
x86 hardware for router system
Damien Miller
Re: Patching a SSH 'Weakness'
P. Souza
Re: RouterBOARD RB600A support
Colocation donated by:
Syndicate