dimba
dimba

Reputation: 27581

Meaning of UTS in UTS_RELEASE

UTS_RELEASE defines the kernel version in Linux. It's defined in generated/utsrelease.h, which is created by the main Makefile like so:

# KERNELRELEASE can change from a few different places, meaning version.h
# needs to be updated, so this check is forced on all builds

uts_len := 64
define filechk_utsrelease.h
        if [ `echo -n "$(KERNELRELEASE)" | wc -c ` -gt $(uts_len) ]; then \
          echo '"$(KERNELRELEASE)" exceeds $(uts_len) characters' >&2;    \
          exit 1;                                                         \
        fi;                                                               \
        (echo \#define UTS_RELEASE \"$(KERNELRELEASE)\";)
endef

I was wondering what UTS stands for, here?

Upvotes: 18

Views: 8810

Answers (3)

Benny
Benny

Reputation: 2331

For example, if KERNELRELEASE value is:

3.18.31-g18e453b

Also in the file

*utsrelease.h

Will be:

#define UTS_RELEASE "3.18.31-g18e453b"

In Android, it goes here:

Settings > About Phone > Kernel Version

Upvotes: 0

Doncho Gunchev
Doncho Gunchev

Reputation: 2239

Maybe https://lwn.net/Articles/531114/ and https://lwn.net/Articles/179345/ are the right(tm) answer :-)

Upvotes: 3

philippe lhardy
philippe lhardy

Reputation: 3286

I will do a bet : it comes from unix history age. Unix Time Sharing http://en.wikipedia.org/wiki/Time-sharing

( with another link to give more weight to my guess : http://www.linuxmisc.com/9-unix-programmer/515225795f89ebf5.htm )

Additionally if you search for UTS on Wikipedia you'll find this as evidence too:

UTS is a three-letter abbreviation which may describe:

  • Time-sharing, known as Unix Time-sharing System (UTS) when abbreviated in the source code of many Unix-like operating systems

Upvotes: 17

Related Questions