Lines Matching refs:function

59 will be filled in by the registration function; any other fields should just be
71 another parameter passed into the registration function.
114 function is recursive. Too many layers will run the kernel out of stack.
179 (3) A function to select the cache in which to store an index [optional].
181 This function is invoked when an index needs to be instantiated in a cache
184 in the hierarchy may be stored in multiple caches. This function does not
188 If this function is not supplied or if it returns NULL then the first
192 (4) A function to retrieve an object's key from the netfs [mandatory].
194 This function will be called with the netfs data that was passed to the
195 cookie acquisition function and the maximum length of key data that it may
199 (5) A function to retrieve attribute data from the netfs [optional].
201 This function will be called with the netfs data that was passed to the
202 cookie acquisition function. It should return the size of the file if
206 If the function is absent, a file size of 0 is assumed.
208 (6) A function to retrieve auxiliary data from the netfs [optional].
210 This function will be called with the netfs data that was passed to the
211 cookie acquisition function and the maximum length of auxiliary data that
215 If this function is absent, the auxiliary data length will be set to 0.
221 (7) A function to check the auxiliary data [optional].
223 This function will be called to check that a match found in the cache for
228 If this function is absent, it will be assumed that matching objects in a
231 If present, the function should return one of the following values:
237 This function can also be used to extract data from the auxiliary data in
244 to the I/O completion callback function. To ensure this context remains
254 (9) A function to mark a page as retaining cache metadata [optional].
261 The PG_fscache bit is set on the pages before this function would be
262 called, so the function need not be provided if this is sufficient.
264 This function is not required for indices as they're not permitted data.
266 (10) A function to unmark all the pages retaining cache metadata [mandatory].
274 This function is not required for indices as they're not permitted data.
285 The registration function is:
319 Any representation so obtained must be released by passing it to this function:
341 This function creates an index entry in the index represented by parent,
344 Note that this function never returns an error - all errors are handled
346 acceptable to pass this token back to this function as the parent to another
437 some point in the future, and as such, it may happen after the function returns
485 (1) The function will return -ENOBUFS.
491 (2) The function will submit a request to read the data from the cache's
494 (3) The function will return 0.
502 (*) The context argument passed to the above function. This will be
522 (3) The function will return -ENODATA.
524 This function may also return -ENOMEM or -EINTR, in which case it won't have
538 This is similar to the fscache_read_or_alloc_page() function, except that it
568 (1) The function will return -ENOBUFS.
574 (2) The function will submit a request to write the data to cache's backing
577 (3) The function will return 0.
652 To uncache a page, this function should be called:
657 This function permits the cache to release any in-memory representation it
658 might be holding for this netfs page. This function must be called once for
663 data file must be retired (see the relinquish cookie function below).
680 When releasepage() is being implemented, a special FS-Cache function exists to
694 To make a page available for release, this function may wait for an outstanding
710 the pages are attached to. This function will wait for pages to finish being
720 cache, the following function can be called:
729 following function should be called:
733 This function will refer back to the netfs_data pointer stored in the cookie by
734 the acquisition function to obtain the data to write into each revised index
776 The optional can_enable() function is passed the data argument and returns a
797 The pinning function will return 0 if successful, -ENOBUFS in the cookie
812 The function will return 0 if successful, -ENOBUFS in the cookie isn't
825 To get rid of a cookie, this function should be called.
835 acquisition function is called. Retirement here will overrule the pinning on a
860 To indicate that a cache object should be invalidated, the following function
874 Using the following function, the netfs can wait for the invalidation operation