Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:bjagg_create - creates a new objagg instance*@ops: user-specific callbacks*@objagg_hints: hints, can be NULL*@priv: pointer to a private data passed to the ops* Note: all locking must be provided by the caller

Proto:struct objagg *objagg_create(const struct objagg_ops *ops, struct objagg_hints *objagg_hints, void *priv)

Type:struct objagg

Parameter:

TypeParameterName
const struct objagg_ops *ops
struct objagg_hints *objagg_hints
void *priv
520  If WARN_ON(!ops || !root_create || !root_destroy || !delta_check || !delta_create || !delta_destroy) Then Return ERR_PTR( - EINVAL)
525  objagg = kzalloc - allocate memory. The memory is set to zero.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc).
526  If Not objagg Then Return ERR_PTR( - ENOMEM)
528  ops = ops
529  If objagg_hints Then
530  hints = objagg_hints
531  refcount++
533  priv = priv
534  Initialization list head
536  key_len = obj_size
537  key_offset = offsetof(structobjagg_obj, obj)
538  head_offset = offsetof(structobjagg_obj, ht_node)
540  err = hashtable_init - initialize a new hash table*@ht: hash table to be initialized*@params: configuration parameters* Initializes a new hash table based on the provided configuration* parameters
541  If err Then Go to err_rhashtable_init
544  ida_init( & root_ida)
546  trace_objagg_create(objagg)
547  Return objagg
549  err_rhashtable_init :
550  kfree(objagg)
551  Return ERR_PTR(err)
Caller
NameDescribe
test_delta
test_hints_case
test_nodelta