commit | ffe0588d0f86e1c58937e7c217e328e17903062f | [log] [tgz] |
---|---|---|
author | Theodore Dubois <tbodt@google.com> | Mon Sep 23 11:30:17 2024 +0000 |
committer | CQ Bot <fuchsia-internal-scoped@luci-project-accounts.iam.gserviceaccount.com> | Mon Sep 23 11:30:17 2024 +0000 |
tree | 1930e0015d3e737f2bbe4509bf356ef304498f6b | |
parent | 0d3861937a201469d4305feeb3cee7c9a61d6871 [diff] |
[starnix] Split overloaded FsNode::socket field This field had two jobs: For FDs created by syscalls like `socket()`, it held the underlying socket so socket syscalls could access it through the FD. For unix domain socket nodes, it held the socket bound to that node. It turns out that for the first type of FD the socket is already held by the FileOps, and nothing needs to access it through the FsNode. So switch the first type of field accessors to go through the FileOps, and rename the field to `bound_socket` for use for bound unix domain sockets. Change-Id: Ib917b76e33d5ec2f5266ca7fce585329786f407c Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/1121712 Reviewed-by: Adam Barth <abarth@google.com> Commit-Queue: Benjamin Lerman <qsr@google.com>
Fuchsia is an open source, general purpose operating system supporting modern 64-bit Intel and ARM processors.
We expect everyone interacting with our project to respect our code of conduct.
Read more about Fuchsia's principles.
See Getting Started.
See fuchsia.dev.