From 41d12fe88a48c34684576d3f42cc38f38345e881 Mon Sep 17 00:00:00 2001 From: Ivan Baravy Date: Fri, 21 Feb 2020 02:41:21 +0000 Subject: [PATCH] docs: Fix adjust_cache_size prototype: it takes userdata too. git-svn-id: svn://kolibrios.org@7727 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/blkdev/disk.inc | 2 +- kernel/trunk/docs/drivers_api.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/trunk/blkdev/disk.inc b/kernel/trunk/blkdev/disk.inc index 375ece2b51..03bccc899b 100644 --- a/kernel/trunk/blkdev/disk.inc +++ b/kernel/trunk/blkdev/disk.inc @@ -82,7 +82,7 @@ struct DISKFUNC adjust_cache_size dd ? ; The pointer to the function which returns the cache size for this device. ; Optional, may be NULL. -; unsigned int adjust_cache_size(unsigned int suggested_size); +; unsigned int adjust_cache_size(void* userdata, unsigned int suggested_size); ; Return value: 0 = disable cache, otherwise = used cache size in bytes. ends diff --git a/kernel/trunk/docs/drivers_api.txt b/kernel/trunk/docs/drivers_api.txt index 3df3ac97dd..a96f7ccfb5 100644 --- a/kernel/trunk/docs/drivers_api.txt +++ b/kernel/trunk/docs/drivers_api.txt @@ -61,7 +61,7 @@ struc DISKFUNC ; implement a software cache for read/write, since they are called from the ; kernel cache manager. .adjust_cache_size dd ? -; unsigned int adjust_cache_size(unsigned int suggested_size); +; unsigned int adjust_cache_size(void* userdata, unsigned int suggested_size); ; Optional. ; Returns the cache size for this device in bytes. 0 = disable cache. }