GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — add __task_cred · re100io/SKRoot-linuxKernelRoot@b1c40a1

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • find_kernel_func
    • Linux内核源码摘录.cpp
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎find_kernel_func/Linux内核源码摘录.cpp‎

Copy file name to clipboardExpand all lines: find_kernel_func/Linux内核源码摘录.cpp
+12-1Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1683,7 +1683,18 @@ static int __ref kernel_init(void *unused)
16831683
panic("No working init found. Try passing init= option to kernel. "
16841684
"See Linux Documentation/admin-guide/init.rst for guidance.");
16851685
}
1686-
1686+
/**
1687+
* __task_cred - Access a task's objective credentials
1688+
* @task: The task to query
1689+
*
1690+
* Access the objective credentials of a task. The caller must hold the RCU
1691+
* readlock.
1692+
*
1693+
* The result of this function should not be passed directly to get_cred();
1694+
* rather get_task_cred() should be used instead.
1695+
*/
1696+
#define __task_cred(task) \
1697+
rcu_dereference((task)->real_cred)
16871698
const struct cred *get_task_cred(struct task_struct *task)
16881699
{
16891700
const struct cred *cred;

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.