Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:init\initramfs.c Create Date:2022-07-28 13:54:45
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:do_name

Proto:static int __init do_name(void)

Type:int

Parameter:Nothing

323  state = SkipIt
324  FSM = Reset
325  If strcmp(collected, "TRAILER!!!") == 0 Then
326  free_hash()
327  Return 0
329  clean_path(collected, mode)
330  If S_ISREG(mode) Then
331  ml = maybe_link()
332  If ml >= 0 Then
334  If ml != 1 Then openflags |= O_TRUNC
338  If wfd >= 0 Then
347  Else if S_ISDIR(mode) Then
348  ksys_mkdir(collected, mode)
349  ksys_chown(collected, uid, gid)
350  ksys_chmod(collected, mode)
351  dir_add(collected, mtime)
352  Else if S_ISBLK(mode) || S_ISCHR(mode) || S_ISFIFO(mode) || S_ISSOCK(mode) Then
354  If maybe_link() == 0 Then
361  Return 0