Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\zpool.c Create Date:2022-07-28 16:25:12
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:his assumes @type is null-terminated.

Proto:static struct zpool_driver *zpool_get_driver(const char *type)

Type:struct zpool_driver

Parameter:

TypeParameterName
const char *type
81  spin_lock( & drivers_lock)
83  If Not strcmp(type, type) Then
84  got = try_module_get(owner)
86  If got Then atomic_inc( & refcount)
88  spin_unlock( & drivers_lock)
89  Return got ? driver : NULL
93  spin_unlock( & drivers_lock)
94  Return NULL
Caller
NameDescribe
zpool_has_poolzpool_has_pool() - Check if the pool driver is available*@type: The type of the zpool to check (e
zpool_create_poolzpool_create_pool() - Create a new zpool*@type: The type of the zpool to create (e.g. zbud, zsmalloc)*@name: The name of the zpool (e.g. zram0, zswap)*@gfp: The GFP flags to use when allocating the pool.*@ops: The optional ops callback.