Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\relay.c Create Date:2022-07-28 11:47:00
Last Modify:2020-03-17 19:20:22 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:setup_callbacks

Proto:static void setup_callbacks(struct rchan *chan, struct rchan_callbacks *cb)

Type:void

Parameter:

TypeParameterName
struct rchan *chan
struct rchan_callbacks *cb
504  If Not cb Then
505  client callbacks = lay channel default callbacks
506  Return
509  If Not subbuf_start Then subbuf_start = subbuf_start() default callback. Does nothing.
511  If Not buf_mapped Then buf_mapped = _mapped() default callback. Does nothing.
513  If Not buf_unmapped Then buf_unmapped = _unmapped() default callback. Does nothing.
515  If Not create_buf_file Then create_buf_file = reate_buf_file_create() default callback. Does nothing.
517  If Not remove_buf_file Then remove_buf_file = move_buf_file() default callback. Does nothing.
519  client callbacks = cb
Caller
NameDescribe
relay_openlay_open - create a new relay channel*@base_filename: base name of files to create, %NULL for buffering only*@parent: dentry of parent directory, %NULL for root directory or buffer*@subbuf_size: size of sub-buffers*@n_subbufs: number of sub-buffers*@cb: