函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\umh.c Create Date:2022-07-27 10:22:55
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:rk_usermode_blob - fork a blob of bytes as a usermode process*@data: a blob of bytes that can be do_execv-ed as a file*@len: length of the blob*@info: information about usermode process (shouldn't be NULL)* If info->cmdline is set it will be used as

函数原型:int fork_usermode_blob(void *data, size_t len, struct umh_info *info)

返回类型:int

参数:

类型参数名称
void *data
size_tlen
struct umh_info *info
503  pos等于0
506  file等于shmem_kernel_file_setup("", len, 0)
507  如果是错误则返回:错误
510  written等于kernel_write(file, data, len, & pos)
511  如果written不等于len
512  err等于written
513  如果err大于等于0则err等于负ENOMEM
515  转到:out
518  err等于负ENOMEM
519  sub_info等于call_usermodehelper_setup_file(file, umh_pipe_setup, umh_clean_and_save_pid, info)
521  如果非sub_info则转到:out
524  err等于all_usermodehelper_exec - start a usermode application*@sub_info: information about the subprocessa*@wait: wait for the application to finish and return status.* when UMH_NO_WAIT don't wait at all, but you get no useful error back
525  如果非err
526  mutex_lock( & umh_list_lock)
527  添加链表项
528  mutex_unlock( & umh_list_lock)
530  out :
531  fput(file)
532  返回:err