* rte.doc.mk: Documentation in the development kit framework
-* rte.gnuconfigure.mk: Build an application that is configure-based (used to compile *newlib*).
+* rte.gnuconfigure.mk: Build an application that is configure-based.
* rte.subdir.mk: Build several directories in the development kit framework.
.. code-block:: c
- int MAIN(int argc, char **argv)
+ int main(int argc, char **argv)
{
ret = rte_eal_init(argc, argv);
if (ret < 0)
int
- MAIN(int argc, char **argv)
+ main(int argc, char **argv)
{
ret = rte_eal_init(argc, argv);
Power Library Initialization
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-The Power library is initialized in the MAIN routine.
+The Power library is initialized in the main routine.
It changes the P-state governor to userspace for specific cores that are under control.
The Timer library is also initialized and several timers are created later on,
responsible for checking if it needs to scale down frequency at run time by checking CPU utilization statistics.
.. code-block:: c
- int MAIN(int argc, char **argv)
+ int main(int argc, char **argv)
{
struct lcore_conf *qconf;
int ret;
EAL and Drivers Setup
^^^^^^^^^^^^^^^^^^^^^
-The EAL arguments are parsed at the beginning of the MAIN() function:
+The EAL arguments are parsed at the beginning of the main() function:
.. code-block:: c
low_watermark = (unsigned int *) qw_memzone->addr + sizeof(int);
}
-These two variables are initialized to a default value in MAIN() and
+These two variables are initialized to a default value in main() and
can be changed while qw is running using the qwctl control program.
Application Arguments
quit
~~~~
-Quit to prompt in Linux or reboot on Baremetal:
+Quit to prompt:
quit