kernel
The Kernel application.
- Provided by: erlang-manpages (Version: 1:20.2.2+dfsg-1ubuntu2)
- Source: erlang
- Report a bug
The Kernel application.
The Kernel application has all the code necessary to run the Erlang runtime system: file servers, code servers, and so on.
The Kernel application is the first application started. It is mandatory in the sense that the minimal system based on Erlang/OTP consists of Kernel and STDLIB. Kernel contains the following functional areas:
Two standard error logger event handlers are defined in the Kernel application. These are described in error_logger(3erl).
Asynchronous OS signals may be subscribed to via the Kernel applications event manager (see OTP Design Principles and gen_event(3erl)) registered as erl_signal_server. A default signal handler is installed which handles the following signals:
Any event handler added to erl_signal_server must handle the following events.
Setting OS signals are described in os:set_signal/2.
The following configuration parameters are defined for the Kernel application. For more information about configuration parameters, see file app(5).
If set to a string Command, the command "Command File" is evaluated using os:cmd/1.
If set to a module-function-args tuple, {M,F,A}, the call apply(M,F,[File|A]) is evaluated.
The parameter is described in application:load/2.
Permissions are described in application:permit/2.
Can be used to limit the size of the formatted output from the error logger event handlers.
Depth is a positive integer representing the maximum depth to which terms are printed by the error logger event handlers included in OTP. This configuration parameter is used by the two event handlers defined by the Kernel application and the two event handlers in the SASL application. (If you have implemented your own error handlers, this configuration parameter has no effect on them.)
Depth is used as follows: Format strings passed to the event handlers are rewritten. The format controls ~p and ~w are replaced with ~P and ~W, respectively, and Depth is used as the depth parameter. For details, see io:format/2 in STDLIB.
Defines global groups, see global_group(3erl). In this parameter:
Defines a list of extra socket options to be used when opening the listening socket for a distributed Erlang node. See gen_tcp:listen/2.
Defines a list of extra socket options to be used when connecting to other distributed Erlang nodes. See gen_tcp:connect/4.
SetupTime must be a positive integer or floating point number, and is interpreted as the maximum allowed time for each network operation during connection setup to another Erlang node. The maximum allowed value is 120. If higher values are specified, 120 is used. Default is 7 seconds if the variable is not specified, or if the value is incorrect (for example, not a number).
Notice that this value does not limit the total connection setup time, but rather each individual network operation during the connection setup and handshake.
Specifies the net_kernel tick time. TickTime is specified in seconds. Once every TickTime/4 second, all connected nodes are ticked (if anything else is written to a node). If nothing is received from another node within the last four tick times, that node is considered to be down. This ensures that nodes that are not responding, for reasons such as hardware errors, are considered to be down.
The time T, in which a node that is not responding is detected, is calculated as MinT < T < MaxT, where:
MinT = TickTime - TickTime / 4 MaxT = TickTime + TickTime / 4
TickTime defaults to 60 (seconds). Thus, 45 < T < 75 seconds.
Notice that all communicating nodes are to have the same TickTime value specified.
Normally, a terminating node is detected immediately.
Defaults to false. If this parameter is undefined, the server is started if parameter distributed is set.
Defaults to false.
SlaveIP = string() | atom | {integer(),integer(),integer(),integer()},
where 0 <= integer() <=255.
Examples of SlaveIP in atom, string, and tuple form:
'150.236.16.70', "150,236,16,70", {150,236,16,70}.
Defaults to [].
Defaults to false.
Starts the pg2 server (see pg2(3erl)) if the parameter is true. This parameter is to be set to true in an embedded system that uses this service.
Defaults to false.
Defaults to false.
Sets a function that application_controller calls when it starts to terminate. The function is called as Mod:Func(Reason), where Reason is the terminate reason for application_controller, and it must return as soon as possible for application_controller to terminate properly.
Where:
Specifies a list of rules for use by filelib:find_file/2 and filelib:find_source/2. If this is set to some other value than the empty list, it replaces the default rules. Rules can be simple pairs of directory suffixes, such as {"ebin", "src"}, which are used by filelib:find_file/2, or triples specifying separate directory suffix rules depending on file name extensions, for example [{".beam", ".erl", [{"ebin", "src"}]}, which are used by filelib:find_source/2. Both kinds of rules can be mixed in the list.
app(5), application(3erl), code(3erl), disk_log(3erl), erl_boot_server(3erl), erl_ddll(3erl), error_logger(3erl), file(3erl), global(3erl), global_group(3erl), heart(3erl), inet(3erl), net_kernel(3erl), os(3erl), pg2(3erl), rpc(3erl), seq_trace(3erl), user(3erl), timer(3erl)