0

I am trying to get mount point of cgroups on my RHEL & SUSE system.

From This I am able to get it but it is with the use of libcgroup's system call. I have to do it without using any libcgroup library function as libcgroup may or may not be installed on customer's server.

Can any one please help?

Chirag
  • 607
  • 1
  • 6
  • 17
  • 3
    Parse `/proc/cgroups` (using `getline()` and `fscanf()`), and `/proc/mounts` (using [`getmntent()`](http://man7.org/linux/man-pages/man3/getmntent.3.html)) like [libcgroup](http://libcgroup.sourcearchive.com/documentation/0.36-1/group__group__init_g37740e2f5f298edf13e18fcd7632b75a.html) itself does (or should do; using `fgets()` when you have `getline()` is just silly). – Nominal Animal Sep 26 '16 at 10:27
  • @NominalAnimal Thanks ...Really helpful – Chirag Sep 27 '16 at 04:02

0 Answers0