Skip to content

Commit 957e49b

Browse files
sjp38dbaluta
authored andcommitted
templates/memory_mapping: Make 'my_seq_show' call as a TODO
The document asks the user to implement 'single_open()' call as a part of the task, but it is not removed in the skel. This commit updates the task to hide it and display as TODO. Signed-off-by: SeongJae Park <sj38.park@gmail.com>
1 parent dbf5637 commit 957e49b

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

tools/labs/templates/memory_mapping/kmmap/kmmap.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ static int my_seq_show(struct seq_file *seq, void *v)
136136

137137
static int my_seq_open(struct inode *inode, struct file *file)
138138
{
139+
/* TODO 3: Register the display function */
139140
return single_open(file, my_seq_show, NULL);
140141
}
141142

tools/labs/templates/memory_mapping/vmmap/vmmap.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ static int my_seq_show(struct seq_file *seq, void *v)
137137

138138
static int my_seq_open(struct inode *inode, struct file *file)
139139
{
140+
/* TODO 3: Register the display function */
140141
return single_open(file, my_seq_show, NULL);
141142
}
142143

0 commit comments

Comments
 (0)