diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-05-28 17:42:18 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-05-28 17:42:18 -0400 |
commit | 9a90e09854a3c7cc603ab8fc9163f77bb1f66cfa (patch) | |
tree | c8c5f767dd2351c9db440f003cc14401583bafd3 /fs/debugfs/file.c | |
parent | d372e7fe4698bde3a00b718f7901a0025dda47ef (diff) | |
parent | d3b383338f105f50724c10a7d81b04a3930e886b (diff) |
Merge branch 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6
* 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6: (27 commits)
ACPI: Don't let acpi_pad needlessly mark TSC unstable
drivers/acpi/sleep.h: Checkpatch cleanup
ACPI: Minor cleanup eliminating redundant PMTIMER_TICKS to NS conversion
ACPI: delete unused c-state promotion/demotion data strucutures
ACPI: video: fix acpi_backlight=video
ACPI: EC: Use kmemdup
drivers/acpi: use kasprintf
ACPI, APEI, EINJ injection parameters support
Add x64 support to debugfs
ACPI, APEI, Use ERST for persistent storage of MCE
ACPI, APEI, Error Record Serialization Table (ERST) support
ACPI, APEI, Generic Hardware Error Source memory error support
ACPI, APEI, UEFI Common Platform Error Record (CPER) header
Unified UUID/GUID definition
ACPI Hardware Error Device (PNP0C33) support
ACPI, APEI, PCIE AER, use general HEST table parsing in AER firmware_first setup
ACPI, APEI, Document for APEI
ACPI, APEI, EINJ support
ACPI, APEI, HEST table parsing
ACPI, APEI, APEI supporting infrastructure
...
Diffstat (limited to 'fs/debugfs/file.c')
-rw-r--r-- | fs/debugfs/file.c | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/fs/debugfs/file.c b/fs/debugfs/file.c index 4d74fc72c195..0210898458b2 100644 --- a/fs/debugfs/file.c +++ b/fs/debugfs/file.c | |||
@@ -277,8 +277,10 @@ DEFINE_SIMPLE_ATTRIBUTE(fops_x32, debugfs_u32_get, debugfs_u32_set, "0x%08llx\n" | |||
277 | DEFINE_SIMPLE_ATTRIBUTE(fops_x32_ro, debugfs_u32_get, NULL, "0x%08llx\n"); | 277 | DEFINE_SIMPLE_ATTRIBUTE(fops_x32_ro, debugfs_u32_get, NULL, "0x%08llx\n"); |
278 | DEFINE_SIMPLE_ATTRIBUTE(fops_x32_wo, NULL, debugfs_u32_set, "0x%08llx\n"); | 278 | DEFINE_SIMPLE_ATTRIBUTE(fops_x32_wo, NULL, debugfs_u32_set, "0x%08llx\n"); |
279 | 279 | ||
280 | DEFINE_SIMPLE_ATTRIBUTE(fops_x64, debugfs_u64_get, debugfs_u64_set, "0x%016llx\n"); | ||
281 | |||
280 | /* | 282 | /* |
281 | * debugfs_create_x{8,16,32} - create a debugfs file that is used to read and write an unsigned {8,16,32}-bit value | 283 | * debugfs_create_x{8,16,32,64} - create a debugfs file that is used to read and write an unsigned {8,16,32,64}-bit value |
282 | * | 284 | * |
283 | * These functions are exactly the same as the above functions (but use a hex | 285 | * These functions are exactly the same as the above functions (but use a hex |
284 | * output for the decimal challenged). For details look at the above unsigned | 286 | * output for the decimal challenged). For details look at the above unsigned |
@@ -357,6 +359,23 @@ struct dentry *debugfs_create_x32(const char *name, mode_t mode, | |||
357 | } | 359 | } |
358 | EXPORT_SYMBOL_GPL(debugfs_create_x32); | 360 | EXPORT_SYMBOL_GPL(debugfs_create_x32); |
359 | 361 | ||
362 | /** | ||
363 | * debugfs_create_x64 - create a debugfs file that is used to read and write an unsigned 64-bit value | ||
364 | * @name: a pointer to a string containing the name of the file to create. | ||
365 | * @mode: the permission that the file should have | ||
366 | * @parent: a pointer to the parent dentry for this file. This should be a | ||
367 | * directory dentry if set. If this parameter is %NULL, then the | ||
368 | * file will be created in the root of the debugfs filesystem. | ||
369 | * @value: a pointer to the variable that the file should read to and write | ||
370 | * from. | ||
371 | */ | ||
372 | struct dentry *debugfs_create_x64(const char *name, mode_t mode, | ||
373 | struct dentry *parent, u64 *value) | ||
374 | { | ||
375 | return debugfs_create_file(name, mode, parent, value, &fops_x64); | ||
376 | } | ||
377 | EXPORT_SYMBOL_GPL(debugfs_create_x64); | ||
378 | |||
360 | 379 | ||
361 | static int debugfs_size_t_set(void *data, u64 val) | 380 | static int debugfs_size_t_set(void *data, u64 val) |
362 | { | 381 | { |