mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-29 13:04:27 +01:00
rm write for seq file
This commit is contained in:
@@ -121,7 +121,7 @@ static struct file_operations fops = {
|
|||||||
static int myinit(void)
|
static int myinit(void)
|
||||||
{
|
{
|
||||||
debugfs_file = debugfs_create_file(
|
debugfs_file = debugfs_create_file(
|
||||||
"lkmc_seq_file", S_IRUSR | S_IWUSR, NULL, NULL, &fops);
|
"lkmc_seq_file", S_IRUSR, NULL, NULL, &fops);
|
||||||
if (debugfs_file) {
|
if (debugfs_file) {
|
||||||
return 0;
|
return 0;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ static const struct file_operations fops = {
|
|||||||
static int myinit(void)
|
static int myinit(void)
|
||||||
{
|
{
|
||||||
debugfs_file = debugfs_create_file(
|
debugfs_file = debugfs_create_file(
|
||||||
"lkmc_seq_file_single", S_IRUSR | S_IWUSR, NULL, NULL, &fops);
|
"lkmc_seq_file_single", S_IRUSR, NULL, NULL, &fops);
|
||||||
if (debugfs_file) {
|
if (debugfs_file) {
|
||||||
return 0;
|
return 0;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user