{
  "__type": "IngestedDoc",
  "__tag": 4010,
  "_content": {
    "Notes": {
      "__type": "Section",
      "__tag": 4015,
      "children": [],
      "title": [],
      "level": 0,
      "target": null
    },
    "Warns": {
      "__type": "Section",
      "__tag": 4015,
      "children": [],
      "title": [],
      "level": 0,
      "target": null
    },
    "Raises": {
      "__type": "Section",
      "__tag": 4015,
      "children": [],
      "title": [],
      "level": 0,
      "target": null
    },
    "Yields": {
      "__type": "Section",
      "__tag": 4015,
      "children": [],
      "title": [],
      "level": 0,
      "target": null
    },
    "Methods": {
      "__type": "Section",
      "__tag": 4015,
      "children": [],
      "title": [],
      "level": 0,
      "target": null
    },
    "Returns": {
      "__type": "Section",
      "__tag": 4015,
      "children": [],
      "title": [],
      "level": 0,
      "target": null
    },
    "Summary": {
      "__type": "Section",
      "__tag": 4015,
      "children": [
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "Yield ancestor process names, nearest first, by reading "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "/proc"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "."
            }
          ]
        }
      ],
      "title": [],
      "level": 0,
      "target": null
    },
    "Receives": {
      "__type": "Section",
      "__tag": 4015,
      "children": [],
      "title": [],
      "level": 0,
      "target": null
    },
    "Warnings": {
      "__type": "Section",
      "__tag": 4015,
      "children": [],
      "title": [],
      "level": 0,
      "target": null
    },
    "Attributes": {
      "__type": "Section",
      "__tag": 4015,
      "children": [],
      "title": [],
      "level": 0,
      "target": null
    },
    "Parameters": {
      "__type": "Section",
      "__tag": 4015,
      "children": [],
      "title": [],
      "level": 0,
      "target": null
    },
    "Extended Summary": {
      "__type": "Section",
      "__tag": 4015,
      "children": [
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "Stops early -- yielding nothing further -- if an ancestor's "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "stat"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " file cannot be read, which is what happens when "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "/proc"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " is mounted with "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "hidepid"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " and the ancestor belongs to another user. That is the same outcome as the "
            },
            {
              "__type": "CrossRef",
              "__tag": 4002,
              "value": "psutil.AccessDenied",
              "reference": {
                "__type": "RefInfo",
                "__tag": 4000,
                "module": "psutil",
                "version": "?",
                "kind": "module",
                "path": "psutil:AccessDenied"
              },
              "kind": "module"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " the psutil walk below has to handle."
            }
          ]
        },
        {
          "__type": "Paragraph",
          "__tag": 4045,
          "children": [
            {
              "__type": "Text",
              "__tag": 4046,
              "value": "The kernel truncates the name in "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "stat"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " to 15 characters, where psutil would fall back to "
            },
            {
              "__type": "InlineCode",
              "__tag": 4051,
              "value": "cmdline"
            },
            {
              "__type": "Text",
              "__tag": 4046,
              "value": " to recover the full one. Every terminal this is matched against is well under that, so a truncated name can only ever fail to match -- and only for a process that was never a match."
            }
          ]
        }
      ],
      "title": [],
      "level": 0,
      "target": null
    },
    "Other Parameters": {
      "__type": "Section",
      "__tag": 4015,
      "children": [],
      "title": [],
      "level": 0,
      "target": null
    }
  },
  "_ordered_sections": [
    "Summary",
    "Extended Summary",
    "Parameters",
    "Returns",
    "Yields",
    "Receives",
    "Raises",
    "Warns",
    "Other Parameters",
    "Attributes",
    "Methods",
    "Notes",
    "Warnings"
  ],
  "item_file": "/dev/ipython/IPython/core/kitty.py",
  "item_line": 40,
  "item_type": "function",
  "aliases": [
    "IPython.core.kitty._proc_ancestor_names"
  ],
  "example_section_data": {
    "__type": "Section",
    "__tag": 4015,
    "children": [],
    "title": [],
    "level": 0,
    "target": null
  },
  "see_also": [],
  "signature": {
    "__type": "SignatureNode",
    "__tag": 4029,
    "kind": "generator function",
    "parameters": [],
    "return_annotation": "Iterator[str]",
    "target_name": "_proc_ancestor_names"
  },
  "references": null,
  "qa": "IPython.core.kitty:_proc_ancestor_names",
  "arbitrary": [],
  "local_refs": []
}