Lines Matching +full:straight +full:- +full:forward
1 .. SPDX-License-Identifier: GPL-2.0
10 https://lwn.net/Articles/driver-porting/
16 Virtual files can provide human-readable output that is easy to get at
23 string. But life gets trickier if the output is long - anything greater
26 position within the virtual file - that position is, likely as not, in the
68 - entry = create_proc_entry("sequence", 0, NULL);
69 - if (entry)
70 - entry->proc_fops = &ct_file_ops;
79 is able to move to a specific position - like the file they implement,
81 in whatever way is convenient - the iterator need only exist
137 move the iterator forward to the next position in the sequence. The
153 start(), it might seem sufficient to simply set ``*pos`` to any non-zero
158 end-of-file. If the value is then used by start() to initialise the
164 set it to a non-zero value.
238 For straight character output, the following functions may be used::
293 file->private_data. If you have an application where the same iterator can
319 return -ENOMEM;
321 p->foo = bar; /* initialize my stuff */
323 p->baz = true;
331 The other operations of interest - read(), llseek(), and release() - are
380 The extra-simple version