History log of /fuchsia/zircon/kernel/include/err.h
Revision Date Author Comments
# 94c28cc6 03-Nov-2017 Travis Geiselbrecht <travisg@google.com>

[zircon] replace the global ASSEMBLY define with compiler emitted __ASSEMBLER__

Change-Id: I186098dfacb67f8ade7c4052cd477ef0e384c0e1


# 39d88359 26-Sep-2017 George Kulakowski <kulakowski@google.com>

[kernel][status] Migrate the rest to zx_status_t

Change-Id: If0a5d3e04bfc3e2a57d068350ee1d1156ed67872


# f3e2126c 12-Sep-2017 Roland McGrath <mcgrathr@google.com>

[zx] Magenta -> Zircon

The Great Renaming is here!

Change-Id: I3229bdeb2a3d0e40fb4db6fec8ca7d971fbffb94


# 2c876f99 15-Aug-2017 Travis Geiselbrecht <travisg@google.com>

[kernel][headers] flip remaining headers to #pragma once

Mostly older LK code that wasn't using it.

Change-Id: I57464f1621f8d5b06601a90cf1d6e4124916762d


# de5f903d 06-Jul-2017 Mark Seaborn <mseaborn@google.com>

[errors] Rename error codes for suspended/resumed and killed threads

Rename from
ERR_INTERRUPTED
MX_ERR_INTERRUPTED_RETRY
to
MX_ERR_INTERNAL_INTR_KILLED
MX_ERR_INTERNAL_INTR_RETRY

* Add "_KILLED" to make the role of the first error code clearer.
* Add "MX_" prefix to the first for consistency with other error codes.
* Add "INTERNAL" to make it clear that these should not be seen by user code.
* Abbreviate "INTERRUPTED" as "INTR".

Change-Id: Ia50beb1707da1e2fb025a10bf2c7296fcbefb1c9


# 823081b0 05-Jul-2017 Mark Seaborn <mseaborn@google.com>

[errors] Add MX_ prefix to ERR_NOT_CONFIGURED for consistency

This is for consistency with other error codes.

Change-Id: I21794cd75dfb6ecd4feb956a914418fb2fdf731b


# d039bef1 16-May-2017 Julia Hansbrough <flowerhack@google.com>

[kernel] minor code cleanup

Removed ERR_KERNEL_PRIVATE_BASE as it's currently not referenced anywhere.

No functional change.

Change-Id: Idbd2d5e1cdfa1be0043d189b31ab58efe66a555d


# 82537ce4 25-Oct-2016 Brian Swetland <swetland@google.com>

[magenta] tidy up the status value source of truth

Change-Id: If232264de7e62da6c73f332ab6e5f26d2a8ef9c0


# 1ed4efe1 29-Aug-2016 Brian Swetland <swetland@google.com>

[magenta][build] global headers move to system/public and system/private

- system/public is for headers global to kernel and userspace that are
also shared via the sysroot
- system/private is for headers global to kernel and userspace that are
not shared via sysroot (private to Magenta)
- reduce top-level include namespace pollution
- moved hw/... to magenta/hw/...
- moved global/fuchsia-types.h to magenta/fuchsia-types.h
- move public headers from system/ulib/magenta/include/... to system/public/...

Change-Id: I1d3298fe0403eb8d474f3725875824632dbd883b


# a501dccb 26-Jul-2016 James Robinson <jamesr@google.com>

Define errors in global header with codegen from definition file

This defines the error values shared across kernel and userspace in a
new header file in global/include/global/fuchsia-types.h derived from
a definition file called fuchsia-types.def that contains some
machinery to allow for further automated manipulation down the road,
for example spelling the symbols differently in different contexts or
providing mechanical strerror() routines. The spelling and definition
of the ERR_FOO symbols remains the same in this patch (preprocessor
defines for integer constants).

Since the purpose of this header is to be shared across kernel and
userspace it is placed into a new top-level directory called 'global'
that is a peer of kernel/ and system/. This directory should contain
very few things.

This is only a first step to reduce duplication. Planned improvements
include defining status_t types for kernel user and mx_status_t types
for userspace, adding strerror() functions for the types, etc. The
expectation is that when we write a code generator for the syscall
dispatch that generator will be responsible for producing the correct
error definitions as well.

Change-Id: I5599a168e49def9f9555f081583a75bb02c61699


# c73eed75 01-Jul-2016 James Robinson <jamesr@google.com>

[errors] Rename ERR_GENERIC -> ERR_INTERNAL, part 2

This removes the ERR_GENERIC definition.

Change-Id: I5cc9d448fdf5a4e7f070109588ac2c3ed91c0d91


# 95174b06 29-Jun-2016 Travis Geiselbrecht <travisg@google.com>

[kernel] add support for killing a thread

-Ramifications: some blocking primitives you now need to opt into to allow
the thread to be interrupted to allow the blocking code to unwind.
-The thread code will need to test for pending signals at interrupt exit

Change-Id: Ib97d504eb34fe3a1d8e83ab99bdf3471199c1d4f


# 28702e96 01-Jul-2016 James Robinson <jamesr@google.com>

[errors] Rename ERR_GENERIC -> ERR_INTERNAL, part 1

This adds ERR_INTERNAL with the same value (-1) as ERR_GENERIC as the
first part of renaming the code. Due to the widepsread use of
ERR_GENERIC and risk of collision, I'll remove the ERR_GENERIC define
in a separate patch so code has a chance to start using the new value
before the old value vanishes.

Change-Id: I15bce2c9930818d6c84d37da80ab7d24de0a7bf6


# 03ad81bd 01-Jul-2016 James Robinson <jamesr@google.com>

[errors] Move ERR_NOT_CONFIGURED to kernel-internal error space

This is used only by class drivers which are slated for removal
(see MG-175) so this moves it into a kernel-internal namespace
and removes references from uspace.

Change-Id: I85ef560d60b386695616bc6da3f98d166a19adc8


# 6fb982aa 01-Jul-2016 James Robinson <jamesr@google.com>

[errors] Remove ERR_PARTIAL_WRITE error code

Multicast ports (which aren't really used) return ERR_BAD_STATE,
nothing else uses this code.

Change-Id: I6f0c207699c1d4414dd450093b0648f12f03c933


# 650a97c7 28-Jun-2016 James Robinson <jamesr@google.com>

[errors] Remove ERR_ALREADY_MOUNTED error code, it is never used

Change-Id: I0801793fcca21f733539d99bfa463950555e736e


# c9e25a2c 28-Jun-2016 James Robinson <jamesr@google.com>

[error] Remove ERR_NO_MSG error code

This removes the ERR_NO_MSG code. Reading a message from a port or
pipe that does not contain a message results in ERR_BAD_STATE, unless
the peer is also closed in which case the error is ERR_CHANNEL_CLOSED.

Change-Id: Ibc22cc8bad6455d7fde96e2a6d8642a1573d7f27


# 524a4f5f 28-Jun-2016 James Robinson <jamesr@google.com>

[udev] Remove ERR_OFFLINE error code

This is used inside the usb ethernet protocol for an is_online()
function that should just return a bool. It is also used in the
usb-xhci code where it is set but never tested in a scenario that
looks like a state error.

Change-Id: Ib645005a96ba0385239011a87c17d702bd68d8bb


# d0f6cfbb 28-Jun-2016 James Robinson <jamesr@google.com>

[kernel][ulib] Remove ERR_OBJECT_DESTROYED

This usually means ERR_CANCELLED. In one case inside the devmgr this
is used for the case where a child is added when the parent is
deleted, which seems more like ERR_BAD_STATE.

Change-Id: Id931fc3be4c49dc7e6e48e49e0ff5903af7860e7


# 9373bdad 27-Jun-2016 James Robinson <jamesr@google.com>

[kernel][magenta] Rough pass at categorizing errors

This organizes the error space into a few categories, removes a few values
that are never or barely ever used, and adds TODOs for several additional
error values that could use additional rationalization. This is a rough pass
to get things in better shape, these error codes or values are by no means
final.

Change-Id: Ic93f33a09b2cfce2621db8d2ce0fb0afd85591cc


# 53b9e1c8 15-Jun-2016 The Fuchsia Authors <authors@fuchsia.local>

[magenta] Initial commit